nuttx/net/utils
Megha Rajput 05cc04e306
Some checks failed
MemBrowse Memory Report / changes-filter (push) Has been cancelled
MemBrowse Memory Report / load-targets (push) Has been cancelled
MemBrowse Memory Report / identical (push) Has been cancelled
MemBrowse Memory Report / analyze (push) Has been cancelled
net: preserve checksum state for empty fragments
checksum() accesses data[0] and calculates an invalid last_byte
pointer when processing an empty fragment with odd state set.

Return early when len is zero to preserve the checksum state and
avoid accessing data from an empty fragment.

Assisted by: GitHub Copilot
Signed-off-by: Megha Rajput <i.meghar.2408@gmail.com>
2026-09-05 10:36:43 +08:00
..
CMakeLists.txt nuttx/net: Expose the net_ipv6addr_maskcmp interface to user-mode calls 2025-12-25 22:13:43 +08:00
Kconfig
Make.defs nuttx/net: Expose the net_ipv6addr_maskcmp interface to user-mode calls 2025-12-25 22:13:43 +08:00
net_bufpool.c
net_chksum.c net: preserve checksum state for empty fragments 2026-09-05 10:36:43 +08:00
net_cmsg.c
net_dsec2tick.c
net_dsec2timeval.c
net_icmpchksum.c
net_incr32.c
net_iob_concat.c
net_ipchksum.c
net_ipv6_payload.c
net_ipv6_pref2mask.c
net_lock.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
net_mask2pref.c
net_snoop.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
net_tcpchksum.c
net_timeval2dsec.c
net_udpchksum.c
utils.h net/utils: conn_dev_sem_timedwait supports the input parameter sconn being NULL 2026-01-02 07:48:06 -03:00