U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] net: use strnstr() for lwip_strnstr()
@ 2025-01-03 23:21 Heinrich Schuchardt
  2025-01-03 23:21 ` [PATCH 1/3] lib: implement strnstr() Heinrich Schuchardt
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Heinrich Schuchardt @ 2025-01-03 23:21 UTC (permalink / raw)
  To: Jerome Forissier; +Cc: Ilias Apalodimas, u-boot, Heinrich Schuchardt

Using strstr() instead of strnstr() creates a security concern.

* Implement missing library function strnstr() and add unit tests.
* Use it for lwIP.

Heinrich Schuchardt (3):
  lib: implement strnstr()
  test: unit tests for strstr() and strnstr()
  net: use strnstr() for lwip_strnstr()

 include/linux/string.h    |  3 +++
 lib/lwip/u-boot/arch/cc.h |  2 +-
 lib/string.c              | 49 +++++++++++++++++++++++++++------------
 test/lib/string.c         | 40 ++++++++++++++++++++++++++++++++
 4 files changed, 78 insertions(+), 16 deletions(-)

-- 
2.47.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-01-21  2:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-03 23:21 [PATCH 0/3] net: use strnstr() for lwip_strnstr() Heinrich Schuchardt
2025-01-03 23:21 ` [PATCH 1/3] lib: implement strnstr() Heinrich Schuchardt
2025-01-06  7:44   ` Jerome Forissier
2025-01-06 10:14     ` Rasmus Villemoes
2025-01-06 10:22       ` Jerome Forissier
2025-01-03 23:21 ` [PATCH 2/3] test: unit tests for strstr() and strnstr() Heinrich Schuchardt
2025-01-09  7:53   ` Ilias Apalodimas
2025-01-03 23:21 ` [PATCH 3/3] net: use strnstr() for lwip_strnstr() Heinrich Schuchardt
2025-01-06  7:50   ` Jerome Forissier
2025-01-21  1:05   ` Tom Rini
2025-01-21  2:18     ` Heinrich Schuchardt
2025-01-21  2:33       ` Tom Rini
2025-01-20 20:52 ` [PATCH 0/3] " Tom Rini
2025-01-20 20:54   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox