Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1041982pxb; Fri, 1 Apr 2022 03:03:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj3OWErxdqy12OP2QC9JugCz8F2BvOVLsBokzrM83OEMsny+eq3IQKVfJ9Xfjv7xWtcIes X-Received: by 2002:a05:6e02:12ce:b0:2c9:e762:c2ad with SMTP id i14-20020a056e0212ce00b002c9e762c2admr5844627ilm.307.1648807398895; Fri, 01 Apr 2022 03:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648807398; cv=none; d=google.com; s=arc-20160816; b=smoZpQ2gqTbvLhgRX3nC80Qa2UywmStWiTbnF380wzAEfxlTfzSW9fS2XcX/FE8GeR 3MQm2Toya7y6Hi3x70YEbzij7Z68vFpwkTT1ykv0XS2a2sqljXOV/iCZZU5avG+JT/Ot M+ROd/Edtyk5D5BpToK4snlcmnqnQA7prDO/e61xhqATztPpeI1Xmm9OOgbjtj95t778 SS8nqcJspE7SdiUxNUQCxBnoCqmhCLlepsTZZHnOuY/nU5S2d22p7R2iQAwQvZnRGKK1 Ap2le657Sj+w1XnnX0PlQIEezIe8qVfSre/aiMJl7RbFfjLlVqm0GA9/5yEbrSMMfBlz 0kCw== 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=CFVrwq0/zIiDVwXSu4zVnR4ruX8sVsEDXe+TjapZD04=; b=GvIqkOFP/vsn5sRgmrrGO4XKG4HuxWfXV2pAiq7XuZQ5zKwtKAO2Vmv+zc/FkTXbM/ 1oB1m4U+fQI43eYwXOLHHI+6zj+K7TwDvq384SCXWPgjPDDknBajFGhncr+MnMOWnUrW 2JFTHTSH4EmxrJNNq0sAnVkGOocfkSHjBG6Xlu6Y15sygT4xCv53vX75cl1BxQ+ej8NL 9eFgixymV9EcXYIDHsu7sq+/GwkPZSpb5xXrqZhOhS89sSb8Zwkq8QBIaFEV/9iuEBLO 5zt5pdkh3pmhauBCUSkfGS/NIHfqLu55AM6gp4VQi4BOkeVTlvDha/HCxGnc/fswZDcD 9kFw== 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 z20-20020a056602123400b006495808450asi935427iot.39.2022.04.01.03.02.51; Fri, 01 Apr 2022 03:03:18 -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 S245562AbiDAHyl (ORCPT + 99 others); Fri, 1 Apr 2022 03:54:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232841AbiDAHyj (ORCPT ); Fri, 1 Apr 2022 03:54:39 -0400 X-Greylist: delayed 359 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 01 Apr 2022 00:52:50 PDT Received: from mxout02.lancloud.ru (mxout02.lancloud.ru [45.84.86.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0E8A26240A for ; Fri, 1 Apr 2022 00:52:50 -0700 (PDT) Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout02.lancloud.ru 68134222570D Received: from LanCloud Received: from LanCloud Received: from LanCloud From: Ildar Kamaletdinov To: CC: Ildar Kamaletdinov Subject: [PATCH BlueZ 0/7] Fix bugs found by SVACE static analisys tool Date: Fri, 1 Apr 2022 10:46:33 +0300 Message-ID: <20220401074640.3956695-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. Ildar Kamaletdinov (7): monitor: Fix out-of-bound read in print_le_states tools: Fix buffer overflow in hciattach_tialt.c tools: Fix signed interger overflow in btsnoop.c tools: Prevent infinity loops in bluemoon.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 | 2 +- src/device.c | 12 ++++++------ src/gatt-database.c | 4 ++++ tools/bluemoon.c | 13 +++++++++++++ tools/btmgmt.c | 2 +- tools/btsnoop.c | 2 +- tools/hciattach_tialt.c | 3 ++- tools/hex2hcd.c | 2 +- 8 files changed, 29 insertions(+), 11 deletions(-) -- 2.34.0