nuttx/net/icmpv6
zhanghongyu 6cba2674fa net/icmpv6: fix wrong logical operator in recvmsg validation
Change && to || in the fromlen validation of icmpv6_recvmsg().
The original condition (fromlen == NULL && *fromlen < sizeof(...))
would never be true when fromlen is NULL due to short-circuit
evaluation. The correct logic is: reject if fromlen is NULL or
the buffer is too small.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-13 08:46:57 -03:00
..
CMakeLists.txt net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
icmpv6.h net: make the sendmsg param type consistent with posix specification 2026-01-16 21:11:39 +08:00
icmpv6_advertise.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_autoconfig.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_conn.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_initialize.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_input.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_ioctl.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_linkipaddr.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
icmpv6_neighbor.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_netpoll.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_notify.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_pmtu.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
icmpv6_poll.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_radvertise.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_recvmsg.c net/icmpv6: fix wrong logical operator in recvmsg validation 2026-04-13 08:46:57 -03:00
icmpv6_reply.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_rnotify.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_rsolicit.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_sendmsg.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_sockif.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
icmpv6_solicit.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
Kconfig net: Refresh config dependency of NET_READAHEAD 2024-12-20 20:01:19 +08:00
Make.defs net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00