patch 'app/dma-perf: verify strdup return' has been queued to stable release 23.11.1

Xueming Li xuemingl at nvidia.com
Tue Mar 5 10:46:18 CET 2024


Hi,

FYI, your patch has been queued to stable release 23.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/31/24. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=8d5327fcfde672c44d6eabfbc4450d47062a31b9

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 8d5327fcfde672c44d6eabfbc4450d47062a31b9 Mon Sep 17 00:00:00 2001
From: Chengwen Feng <fengchengwen at huawei.com>
Date: Fri, 10 Nov 2023 10:01:14 +0000
Subject: [PATCH] app/dma-perf: verify strdup return
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 8d9b64343344a56301dfc1975e4756d526f05824 ]

Add verify strdup return value logic.

Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test")

Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
Acked-by: Huisong Li <lihuisong at huawei.com>
---
 app/test-dma-perf/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/test-dma-perf/main.c b/app/test-dma-perf/main.c
index 5f8bab8f45..544784df50 100644
--- a/app/test-dma-perf/main.c
+++ b/app/test-dma-perf/main.c
@@ -206,6 +206,8 @@ parse_lcore_dma(struct test_configure *test_case, const char *value)
 		return -1;

 	input = strndup(value, strlen(value) + 1);
+	if (input == NULL)
+		return -1;
 	addrs = input;

 	while (*addrs == '\0')
--
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2024-03-05 17:39:32.166195439 +0800
+++ 0037-app-dma-perf-verify-strdup-return.patch	2024-03-05 17:39:30.723566491 +0800
@@ -1 +1 @@
-From 8d9b64343344a56301dfc1975e4756d526f05824 Mon Sep 17 00:00:00 2001
+From 8d5327fcfde672c44d6eabfbc4450d47062a31b9 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 8d9b64343344a56301dfc1975e4756d526f05824 ]
@@ -9 +11,0 @@
-Cc: stable at dpdk.org


More information about the stable mailing list