Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1357024lqb; Thu, 30 May 2024 08:01:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJc9yBnKZkdCS8xsEEfqqdhtsQL8WUjUCmb/6tGGiA3ZntiqSi71R9y8ebzi3eeBkAvhuTMFCea7jU8JnsA+8cUktOF1OUWM0ZtLtjKQ== X-Google-Smtp-Source: AGHT+IEbNx+PNLvIYogF8I/bEtrv4nTYEHYWCBmhTwLfgeo2pe0vKedcy9mWVRN4B+t2EfcXAmmx X-Received: by 2002:a05:6a20:2592:b0:1af:9a04:24bf with SMTP id adf61e73a8af0-1b26456e646mr2581781637.34.1717081273711; Thu, 30 May 2024 08:01:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717081273; cv=pass; d=google.com; s=arc-20160816; b=PcX0+oJgTBnDckrP/9mkQESz2hQsT0MKmyHByaOdPhqegnxrBHBJr7saZ7zwNZlwAF HgsX78EaOIR2TBXI464ZrdlclOu1ezpQCFQib7LbrcQrCNxOf8umyVWagkJCYGPWQkQQ NbiIvFS/2F89pKwKf4Z5THRguWu1E+CEIcfW5Ejlmv+9Vkr5xE+fvvVWWCFa14kvk8rh K54Qc/z716gYDPy44qqBTbVHivtJQvpdCVPIr/gxdULQJCcEvMS98M+C/IvT2Kn9xfsn Cn3aNSdNZ0w3/AV7eg9+Rp6Caz2yd0xYZBf+KEBTn9DRhU08vKOVVxrLtRYDU25OG6lO 5iRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=l8oUKNAR13QD/Jneym0SK5Oqqto3iMt+3vlWzcphMs4=; fh=uo5u2TQK/HQlhydMwGLjBAnuDwaLxndJ/cgWTjIagS8=; b=SA/WetR4dO6/jaA84MzeK4HHqACIBN1Zk6y6VCdvqjeHk381kJUiHMg3KULLEnGHy6 8lq/bClurCA9MITvo9khhiM0Wy8NhAIVCbZdO4gFKfLPd1Vp7rZDWd2suyZv7FRTIEYS IF0kD0HVS3FkVbB9c6wpqbhTiM4HDo/drjlfe6IbvzR9x3+rEqGsbpOm48Ki1AnJvTkK lSt5p/7WVHZBGePob/6blgTKjyddth8+eRuoAznUM6G7OuOxvtLE637s3orrvUIG8XzE +HkcO1aNdskjqU22NfEnqQvb+tAyWO8KcsYY+SPipAiaEYq3qRpzMqKRUwJCDRWVtvqu 1MFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=hadess.net); spf=pass (google.com: domain of linux-bluetooth+bounces-5035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5035-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6bfce41a00dsi1510568a12.595.2024.05.30.08.01.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 08:01:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-5035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=hadess.net); spf=pass (google.com: domain of linux-bluetooth+bounces-5035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5035-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 153A3B220AF for ; Thu, 30 May 2024 15:01:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F71117D8A0; Thu, 30 May 2024 15:01:02 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC3541DFE8 for ; Thu, 30 May 2024 15:00:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081261; cv=none; b=uK0gvZo0wNoEpKLKTS6igrzVxDNTEkc6rMGN6LHPCz9it3zOH+0Kts0RkQKlodCKqGI5DJtm09JFQoN/Iwfv5AkJwvrBQtViefA4ntydq4t2rhPqhaASfSfigluqp8tsd30R0n0S6lanAOym3VghoyQ0w/pmW5AVFh7jNvepkpg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081261; c=relaxed/simple; bh=V/JOPG/Yzv3TattD5gR3BZWHiGICXMO3fS4RFao5UgE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d3xMb22y+C9lA8yp19z5FjAkCayGtDk3EDlr2p9VZ6sIBxuumBS8pkbzTHpjCSKfbq6NocWinFV3aZP8VqFBRoH7iZXOaHz1JGd0t38iIkcj9na2aEViPFv3OQsD2SG1D7AfNwSVzK3ftTKVJNz+rL7RCVPp3kq1WVp4Q0o1ek0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: by mail.gandi.net (Postfix) with ESMTPSA id BC7B220009; Thu, 30 May 2024 15:00:57 +0000 (UTC) From: Bastien Nocera To: linux-bluetooth@vger.kernel.org Cc: Bastien Nocera Subject: [BlueZ 0/9] Fix a number of static analysis issues #3 Date: Thu, 30 May 2024 16:57:54 +0200 Message-ID: <20240530150057.444585-1-hadess@hadess.net> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: hadess@hadess.net 14 defects fixed, and 1 error check added. Let me know whether there's any problems with the implementation, I'm thinking in particular of the avdtp changes which are pretty invasive. Cheers Bastien Nocera (9): rctest: Fix possible overrun mgmt-tester: Fix buffer overrun l2test: Add missing error checking rfkill: Avoid using a signed int for an unsigned variable shared/mainloop: Fix integer overflow sdp: Fix ineffective error guard obexd: Fix buffer overrun bap: Fix more memory leaks on error avdtp: Fix manipulating struct as an array gobex/gobex.c | 2 +- lib/sdp.c | 8 ++++---- profiles/audio/avdtp.c | 33 ++++++++++++++++++++++----------- profiles/audio/bap.c | 5 ++++- src/rfkill.c | 2 +- src/shared/mainloop-notify.c | 3 ++- tools/l2test.c | 5 +++++ tools/mgmt-tester.c | 2 +- tools/rctest.c | 3 ++- 9 files changed, 42 insertions(+), 21 deletions(-) -- 2.45.1