Files
NoxToxCipher 02daf25560 fix(network): check buffer length before reading family in unpack_ip_port
In unpack_ip_port, data[0] was accessed without verifying that length > 0, causing a potential 1-byte out-of-bounds read on 0-length input. Additionally, checked ip_port and data before dereferencing.

In unpack_nodes, add an entry check verifying nodes is non-null when max_num_nodes > 0.

Added boundary unit tests in auto_tests/network_test.c covering zero-length inputs, truncated IPv4/IPv6 buffers, and invalid address families.
2026-08-25 18:20:00 +10:00
..
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-19 17:49:39 +00:00
2026-01-19 17:49:39 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-08-21 13:29:53 +02:00