summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2025-02-03 10:12:02 +0100
committerTom Rini <[email protected]>2025-02-12 12:37:19 -0600
commit331d75544fc843f93275eb3767753e4a0a712a39 (patch)
tree8fb33fba531ca03aaf1da6885b1a4314046f7667 /lib
parent4fee75276d3b140bf534f045327901656067bf80 (diff)
net: use strnstr() for lwip_strnstr()
Using strstr() instead of strnstr() creates a security concern. Fixes: 1c41a7afaa15 ("net: lwip: build lwIP") Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Jerome Forissier <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]> Signed-off-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/lwip/u-boot/arch/cc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lwip/u-boot/arch/cc.h b/lib/lwip/u-boot/arch/cc.h
index de138846358..6104c296f6f 100644
--- a/lib/lwip/u-boot/arch/cc.h
+++ b/lib/lwip/u-boot/arch/cc.h
@@ -34,7 +34,7 @@
x, __LINE__, __FILE__); } while (0)
#define atoi(str) (int)dectoul(str, NULL)
-#define lwip_strnstr(a, b, c) strstr(a, b)
+#define lwip_strnstr(a, b, c) strnstr(a, b, c)
#define LWIP_ERR_T int
#define LWIP_CONST_CAST(target_type, val) ((target_type)((uintptr_t)val))