Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3664845ioo; Mon, 30 May 2022 07:07:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoD9fpet1UtSmVXatiAEbjNiB/EniijBrhjRHMG/+/90FjvBNG6w6tpruBN0jR9jAHPcPa X-Received: by 2002:a63:87c1:0:b0:3fb:9d17:72ed with SMTP id i184-20020a6387c1000000b003fb9d1772edmr15513680pge.597.1653919656256; Mon, 30 May 2022 07:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653919656; cv=none; d=google.com; s=arc-20160816; b=K1/14MBAtBtA8Dp1q13rEN/xZmPm58gt7tZjOZFPGbXTR0gzi+vYg7hX63jrrrktD6 njQRQwusHMDblYbUzBMHEvZy/aESUTsENY8QIkoAI/3KnHkFtG9NpLO4aB/uG/17gNVX I582Ai75OONs1CMdHDfPOCltBnx+fjI/rRgZU3Q2fUBoNUBE7scfqYl5PTzMRmM6kSS0 qR+6OfeiaXaHzA9sI1cP37W2XCU8ZuWxDdd8CN7QevaEOAkNeGZmfLtptqwv/5MaI8up q60WRYnhIFygJISNBWXdsf0V0hOdBO6S6Jm+HrsLW/YVHEl8ZBocfVkaslDx3h4yDMLu Wt9Q== 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; bh=XKKmwzDgb/fMQy3cknQwVioXGaYxXqBGi6snlhibEgE=; b=rCWyhy/S6/dKPtso1wr1PHQ7r8aelfm+zLM0Vjt8I8/ZYG7G1WwUWFLxE51MzqwSsX 4nzTfzs12u0fexmPJIOYWx9DpBIVLGBmWqBmyPQNb2s3WW5mqSzPzfpEDLkNUEqSKZTk U6fsynqPPsX281xFG/PjcQy8Wa07Bq/spmlxtb12by25kFRJVeisaP2sJDydnZReAR0I +aTlQdEZfpbWJ90e0f2Sq2HP2eenw2AwVC6riPY5Y7tiOD004jfN7VE+buAVei9IQwa7 cUB6RJVBCry9OZdE4aN9ssdsSANtLlkubb1Vmt9JjQAmW+S7FvS2rlmuR3sAZabzFILw fZpg== 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a056a00180f00b005191e2b27a5si16897039pfa.58.2022.05.30.07.07.23; Mon, 30 May 2022 07:07:36 -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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232178AbiE3IM0 (ORCPT + 99 others); Mon, 30 May 2022 04:12:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232777AbiE3IMY (ORCPT ); Mon, 30 May 2022 04:12:24 -0400 Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [207.211.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CCA51BB0 for ; Mon, 30 May 2022 01:12:22 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-303-RZtXuNMKPvGF4xwhCNvRHw-1; Mon, 30 May 2022 04:12:16 -0400 X-MC-Unique: RZtXuNMKPvGF4xwhCNvRHw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EAFDE80013E; Mon, 30 May 2022 08:12:15 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.64.242.130]) by smtp.corp.redhat.com (Postfix) with ESMTP id ABBC7140EBD5; Mon, 30 May 2022 08:12:13 +0000 (UTC) From: Gopal Tiwari To: linux-bluetooth@vger.kernel.org Cc: luiz.dentz@gmail.com, gtiwari@redhat.com Subject: [Bluez 00/13] Fixing memory leak, leaked_handle and use_after Date: Mon, 30 May 2022 13:41:56 +0530 Message-Id: <20220530081209.560465-1-gopalkrishna.tiwari@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_SOFTFAIL,SPOOFED_FREEMAIL,SPOOF_GMAIL_MID, T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Gopal Tiwari Following fixes are reported by coverity tool. Gopal Tiwari (13): Fixing memory leak issue in gatt.c Fixing memory leakage in appkey.c Fixing memroy leak in jlink.c Fixing memory leak in sixaxis.c Fixing leaked_handle in cltest.c Fixing leaked_handle in create-image.c Fixing leaked_handle in l2cap-tester.c Fixing resource leak in mesh/mesh-db.c Fixing leaked_handle in obex-client-tool.c Fixing use after free in src/device.c Fixing memory leak in pbap.c Fixing possible use_after_free in meshctl.c Fixing use_after_free in prov-db.c client/gatt.c | 11 ++++++++--- mesh/appkey.c | 8 ++++++-- monitor/jlink.c | 5 ++++- obexd/client/pbap.c | 5 +++-- plugins/sixaxis.c | 9 +++++++-- src/device.c | 1 + tools/cltest.c | 1 + tools/create-image.c | 7 +++---- tools/l2cap-tester.c | 1 + tools/mesh-gatt/prov-db.c | 3 ++- tools/mesh/mesh-db.c | 2 ++ tools/meshctl.c | 1 - tools/obex-client-tool.c | 1 + 13 files changed, 39 insertions(+), 16 deletions(-) -- 2.26.2