Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp456948lqo; Fri, 10 May 2024 05:23:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5n9LUMsCozVDMfvgK/cmOjrgQEAF6zwRI6H9C16nvdL6XICUULzLQdk9comOvg7Dn8krHxlYh1N5ZFMfaa/NRQTWEK/Z5AqsiIT1eMw== X-Google-Smtp-Source: AGHT+IFIFJ32P/i3lAMZkav5E0t2el651yt4zz+kFyklFQoJsSnWth5lglKOfGikTtW3qFGw2EY7 X-Received: by 2002:a17:902:7b82:b0:1ec:585e:5363 with SMTP id d9443c01a7336-1ef43d2e2ffmr20914555ad.29.1715343792355; Fri, 10 May 2024 05:23:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715343792; cv=pass; d=google.com; s=arc-20160816; b=sN3+fh80JLlOshRy5J9dBJ1x/t9gDWZK2fh3m+Ue3VKfMV/ryP5eskcKZDVXTD6USU lPglywHTxsFbWpCRec008mvaVG+Ehf+fbHHd4gZpIlUy0+FsbeY52IBFe2p4t85PYIYU X4uWq0ymV0d08WQzVn3Mk3vdbfxc5/s/ptG3Cb8yBT3DKdzQFVuiTH4MrPIwQo2SrAi9 l322wP8q2B1yQf4W559/A+SbgJgAr+TdtAtvUVH9/ub2YNOjq+0/qpQ7Nx3y5Dwa3IYt gmnOwDhkNMoa784W80o9fe+jGsf+gZXCRla48zgyByBTJq2N5GC57ADWraPxZcsKS1X9 YbGg== 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=X8AxlbOL9QCHMHhLUU2CRx1g6veomUJVvlmbxLo4Q+Y=; fh=uo5u2TQK/HQlhydMwGLjBAnuDwaLxndJ/cgWTjIagS8=; b=HvscRlh/3iQhH9g1MlYI/8hwY54DfPL0nFpm2e5D0mNfZwikMVMX38nGCx5/mSBs+c 9H2WZIJX5oKRHh7HzEUYD1mwTQRyU8rP55g9bRH75rrijiRXXHDzlt5q+j1uV5hJJYPu wr0NhdlBloWvZ3C+oF7H3xTsoQJINZvHKifxy5tKVzpnbaigwAqXnoHshjMGOeAipX4S SVl1kTjKfl8A2++CdJJbmtI7wl8/YlJH7T+2F/m6j5obBlQv8ar7H26x0q4O4ERkxwG+ fetskeJBqSUFvpWFNFCPJn0BtRsTLpxnv7nmedknFk3o/cS9pVatC5FXwSnqICMjcQ/e morQ==; 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-4470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4470-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0b9cffbdsi35318505ad.4.2024.05.10.05.23.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:23:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=hadess.net); spf=pass (google.com: domain of linux-bluetooth+bounces-4470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4470-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AD60328294E for ; Fri, 10 May 2024 12:14:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77576170889; Fri, 10 May 2024 12:14:15 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 48CC716FF5B for ; Fri, 10 May 2024 12:14:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715343254; cv=none; b=CXlSxy7c7Jgb6YsONL7ZJPVcUqlmAuKFHmtzY/q7YBe7R3UwEkbHVhHU6d/Jf19JDU+KDiwJpwBC2KjptqR1CNjsRtzj2ePzDipdozeZJ1mWZtU3FKVP6An12Jq+SPoDf/TpS60ZIPwsGLlZkuMokBJSemJRnr6Jdos0+rBxnQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715343254; c=relaxed/simple; bh=YxeLF1Ugc5ZMF5i0ShdwAJKFYYj9XeyJpD/3a3qxe0s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ErB88FhcvEmJQKZksDPdVnsV7Kf1WClKp6axcoH8kLNYGEmBeOe/nCmLVVXh1oHui23f3/d8gQwqX1Z8mVyiuS4ptxCL3R8cEZqP8wWfqN4QOLFHSK/HUReBQPmH2vb3qFoDnaYx3fEi0/A4MdNeG9MdsQQ8Z2zvai8BcZycYXo= 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.195 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 8F42160007; Fri, 10 May 2024 12:13:55 +0000 (UTC) From: Bastien Nocera To: linux-bluetooth@vger.kernel.org Cc: Bastien Nocera Subject: [BlueZ v2 00/20] Fix a number of static analysis issues Date: Fri, 10 May 2024 14:10:10 +0200 Message-ID: <20240510121355.3241456-1-hadess@hadess.net> X-Mailer: git-send-email 2.44.0 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 Changes since v1: - added 6 patches - Fix syntax error in "client/gatt: Check write_value() retval" Bastien Nocera (20): adapter: Use false instead of 0 for bool attrib/gatt: Guard against possible integer overflow client/gatt: Don't pass negative fd on error client/gatt: Check write_value() retval client/main: Fix array access client/main: Fix mismatched free monitor/att: Fix memory leak bap: Fix memory leaks media: Fix memory leak main: Fix memory leaks isotest: Consider "0" fd to be valid isotest: Fix error check after opening file client/player: Fix copy/paste error shared/vcp: Fix copy/paste error isotest: Fix fd leak iso-tester: Fix fd leak sdp: Fix use of uninitialised memory monitor: Work-around memory leak warning avrcp: Fix uninitialised memory usage main: Simplify variable assignment attrib/gatt.c | 8 ++++--- client/gatt.c | 21 +++++++++++++++---- client/main.c | 7 ++++++- client/player.c | 2 +- lib/sdp.c | 2 +- monitor/att.c | 19 +++++++++++++++++ monitor/jlink.c | 3 ++- profiles/audio/avrcp.c | 10 ++++----- profiles/audio/bap.c | 47 +++++++++++++++++++++++++++++------------- profiles/audio/media.c | 1 + src/adapter.c | 2 +- src/main.c | 16 +++++++------- src/shared/vcp.c | 2 +- tools/iso-tester.c | 1 + tools/isotest.c | 6 ++++-- 15 files changed, 104 insertions(+), 43 deletions(-) -- 2.44.0