Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1265108pxb; Fri, 1 Apr 2022 08:45:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1qHJUa1C/MrARlOWlAn7a/VtRlH8g61mOOYQETIwGALQxYGHQNoRav+SSKdrFpmE1f35K X-Received: by 2002:a17:902:708b:b0:156:1a0a:5c3d with SMTP id z11-20020a170902708b00b001561a0a5c3dmr10762020plk.18.1648827928504; Fri, 01 Apr 2022 08:45:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648827928; cv=none; d=google.com; s=arc-20160816; b=XOUQy/TvdccfHoMHb7qemq57e9KqHGhcA9cDond5QcIcC0A7N76DVoxaE8R8fXyh9V 1pKfDTUSBxVs1cO/53HFPWnGOOJnmCBjsDB+9j4wW6tJ/CS4N/r6AKFIt8QWM4ZCVmNX iMbHC1WQQW4aAjbAraFksHR3JfNMdNwudNGEWHfoHjPFMIzS+QRe2paZ+g513ZsA/kDq /MK9RvPH3mae8n6Lmqg2dajzsjDwGpArlts+553WH1Z9FzHKaUVh28iRpss8T3jP2xQi 4wr2wkeycqwRz4bLWibJij/E3AuLQuUnNBiIt1mpAHffRMZUreGhvUDgmCHcuUcF0VC3 LCgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-filter; bh=Lq/WYlPriZXbeSBt+QfJ7iUp8HeAZDHfdy4xorGg3hg=; b=Ufvyv50VtTGY8kTpxqfIXg2+CEAD5JaYPrbsbdqngH3NoCKUPPLHiykuv8yTOQBybu x8G5nh3/nIeUSL9EIKSoSrtENBkpQiU7wX8Sk+xYVvXkhfULUNyY9GCxBa/tt11A5E0d /ebr7zdeofcTh8scwLQWmKrw9J6n0qnO7Rlhk52vKImMHTI6Ki0g1etjsRCm8hxv2Xnb N0vz5oNAXRkFx5fU9HbA4PHJQppQaTNzmeNRJibFGiooMhJHL3ekB/LZ68agQaCqcB+C GzBlDf9AdR5oJnhjAO2yAsTe4Op8R9jY1J+hcxtvlcF0Hh2KFIb69R6XA6Lv1U8XGyoA ctMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x125-20020a627c83000000b004faa5d48062si2459297pfc.261.2022.04.01.08.45.09; Fri, 01 Apr 2022 08:45:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241747AbiDAMSo (ORCPT + 99 others); Fri, 1 Apr 2022 08:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245212AbiDAMSn (ORCPT ); Fri, 1 Apr 2022 08:18:43 -0400 Received: from mxout04.lancloud.ru (mxout04.lancloud.ru [45.84.86.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F76648324 for ; Fri, 1 Apr 2022 05:16:52 -0700 (PDT) Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout04.lancloud.ru B3A4620D308D Received: from LanCloud Received: from LanCloud Received: from LanCloud From: Ildar Kamaletdinov To: CC: Ildar Kamaletdinov Subject: [PATCH BlueZ 0/6] [v4] Fix bugs found by SVACE static analisys tool Date: Fri, 1 Apr 2022 15:16:41 +0300 Message-ID: <20220401121647.3985682-1-i.kamaletdinov@omp.ru> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1910.lancloud.ru (fd00:f066::80) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patch set includes few fixes that was found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool. I have manually filtered out non-relevant and false positive problems and only procedeed with bugs that currently lead to some errors/vulnerabilities or may lead to them in some specific conditions. Changelog: [v4] one patch was dropped due to overchecking, seems that it is not required [v3] one fix wasn't staged, sorry, one more fix after CI checks [v2] some minor style fixes after CI check. [v1] initial version. Ildar Kamaletdinov (6): monitor: Fix out-of-bound read in print_le_states tools: Fix buffer overflow in hciattach_tialt.c tools: Fix signed integer overflow in btsnoop.c tools: Limit width of fields in sscanf device: Limit width of fields in sscanf gatt: Fix double free and freed memory dereference monitor/packet.c | 7 ++++--- src/device.c | 14 +++++++------- src/gatt-database.c | 4 ++++ tools/btmgmt.c | 2 +- tools/btsnoop.c | 2 +- tools/hciattach_tialt.c | 3 ++- tools/hex2hcd.c | 2 +- 7 files changed, 20 insertions(+), 14 deletions(-) -- 2.35.1