From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9B5FA432F3; Fri, 10 Nov 2023 11:04:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7BA9942E2D; Fri, 10 Nov 2023 11:04:12 +0100 (CET) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id ACFEC42DEA for ; Fri, 10 Nov 2023 11:04:03 +0100 (CET) Received: from dggpeml100024.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4SRZ6n6vD9zMmXl; Fri, 10 Nov 2023 17:59:29 +0800 (CST) Received: from localhost.localdomain (10.50.165.33) by dggpeml100024.china.huawei.com (7.185.36.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 10 Nov 2023 18:04:00 +0800 From: Chengwen Feng To: , CC: Subject: [PATCH v2 00/16] verify strdup return value Date: Fri, 10 Nov 2023 10:01:01 +0000 Message-ID: <20231110100117.8350-1-fengchengwen@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.50.165.33] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml100024.china.huawei.com (7.185.36.115) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patchset mainly fix the return value of strdup not checked which may lead to segment fault. It also include two commits which fix memory leak of strdup. Chengwen Feng (16): eal: verify strdup return value bus/dpaa: verify strdup return value bus/fslmc: verify strdup return value bus/vdev: verify strdup return value dma/idxd: verify strdup return value event/cnxk: verify strdup return value net/failsafe: fix memory leak when parse args net/nfp: verify strdup return value app/dumpcap: verify strdup return value app/pdump: verify strdup return value app/test: verify strdup return value app/test-crypto-perf: verify strdup return value app/test-dma-perf: verify strdup return value app/testpmd: verify strdup return value examples/qos_sched: fix memory leak when parse args examples/vhost: verify strdup return value --- v2: fix 0-day warning of app/dumpcap commit. app/dumpcap/main.c | 5 ++++ app/pdump/main.c | 3 +++ app/test-crypto-perf/cperf_options_parsing.c | 4 ++++ app/test-dma-perf/main.c | 2 ++ app/test-pmd/cmdline.c | 2 ++ app/test/process.h | 5 +++- drivers/bus/dpaa/dpaa_bus.c | 4 ++++ drivers/bus/fslmc/fslmc_bus.c | 4 ++++ drivers/bus/vdev/vdev.c | 4 ++++ drivers/dma/idxd/idxd_bus.c | 10 ++++++-- drivers/event/cnxk/cnxk_eventdev.c | 3 +++ drivers/net/failsafe/failsafe_args.c | 2 +- drivers/net/nfp/nfp_ipsec.c | 5 ++++ examples/qos_sched/args.c | 4 +++- examples/vhost/main.c | 3 +++ lib/eal/common/eal_common_options.c | 24 ++++++++++++++++++-- lib/eal/linux/eal_dev.c | 3 +++ 17 files changed, 80 insertions(+), 7 deletions(-) -- 2.17.1