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-06-04 09:50:02 +02:00
2026-02-15 22:11:31 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-01-24 12:51:12 +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-05-19 22:10:16 +02:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-02-15 22:11:26 +00:00
2026-01-27 22:35:47 +00:00
2026-01-17 14:35:20 +00:00
2026-01-17 14:35:20 +00:00
2026-02-09 09:34:26 +00:00
2026-02-15 22:11:31 +00:00
2026-01-27 22:35:47 +00:00
2026-02-09 09:34:26 +00:00
2026-01-15 12:19:00 +00:00
2026-01-15 12:19:00 +00:00
2026-02-09 09:34:26 +00:00
2026-08-25 18:20:00 +10:00
2026-05-23 21:42:04 +02:00
2026-02-08 21:57:40 +00:00
2026-05-17 08:18:42 +00:00
2026-02-08 21:57:40 +00:00
2026-02-08 21:57:40 +00:00
2026-01-19 17:49:39 +00:00
2026-01-19 17:49:39 +00:00
2026-02-09 09:34:26 +00:00
2026-02-15 22:11:31 +00:00
2026-01-27 22:35:47 +00:00
2026-02-09 09:34:26 +00:00
2026-02-15 22:11:26 +00:00
2026-01-27 22:35:47 +00:00
2026-02-15 22:11:26 +00:00
2026-01-27 22:35:47 +00:00
2026-02-09 09:34:26 +00:00
2026-02-09 09:34:26 +00:00
2025-07-13 00:26:24 +00:00
2026-05-23 14:47:21 +02:00
2026-05-19 22:10:16 +02:00
2026-06-20 15:55:32 +02:00
2026-05-19 22:10:16 +02:00
2026-05-19 22:10:16 +02:00
2026-01-17 12:38:18 +00:00
2026-01-14 23:44:18 +00:00
2026-02-09 09:34:26 +00:00
2026-02-09 09:34:26 +00:00
2026-02-15 22:11:31 +00:00
2025-07-13 00:26:24 +00:00
2026-05-23 14:47:21 +02:00
2026-05-22 10:35:59 +02:00
2025-07-13 12:26:15 +00:00
2026-01-14 02:10:10 +00:00
2026-02-15 22:11:31 +00:00
2026-01-27 22:35:47 +00:00
2026-02-15 22:11:31 +00:00
2026-01-27 22:35:47 +00:00
2026-01-14 02:10:10 +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-15 12:19:00 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-05-23 16:30:20 +02:00
2026-05-23 16:30:20 +02:00
2026-01-15 12:19:00 +00:00
2026-01-15 12:19:00 +00:00
2026-02-09 09:34:26 +00:00
2026-01-27 22:35:47 +00:00
2025-07-13 00:26:24 +00:00
2026-02-09 09:34:26 +00:00
2026-02-09 09:34:26 +00:00
2026-02-15 22:11:31 +00:00
2026-01-27 22:35:47 +00:00
2026-03-02 22:34:45 +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-17 17:25:19 +00:00
2026-01-17 17:25:19 +00:00
2026-01-15 12:19:00 +00:00
2026-01-15 12:19:00 +00:00
2026-02-09 09:34:26 +00:00
2026-08-25 18:20:00 +10:00
2026-05-07 11:02:13 +02:00
2026-05-22 10:35:59 +02:00
2026-01-27 22:35:47 +00:00
2026-02-09 09:34:26 +00:00
2026-02-09 09:34:26 +00:00
2026-05-23 14:47:21 +02:00
2026-05-23 14:47:21 +02:00
2026-05-07 11:02:13 +02:00
2026-01-27 22:35:47 +00:00
2026-02-15 22:11:31 +00:00
2026-01-19 17:49:39 +00:00
2026-02-15 22:11:31 +00:00
2026-02-15 22:11:31 +00:00
2026-02-15 22:11:31 +00:00
2026-01-14 23:44:18 +00:00
2026-01-27 22:35:47 +00:00
2026-02-15 22:11:31 +00:00
2026-02-09 09:34:26 +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-14 15:15:40 +00:00
2026-01-14 15:15:40 +00:00
2026-02-09 09:34:26 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-02-08 21:57:40 +00:00
2026-01-15 12:19:00 +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-02-15 22:11:26 +00:00
2026-01-14 02:10:10 +00:00
2026-02-09 09:34:26 +00:00
2026-02-15 22:11:26 +00:00
2026-01-27 22:35:47 +00:00
2026-02-08 21:57:40 +00:00
2026-02-15 22:11:26 +00:00
2026-01-27 22:35:47 +00:00
2026-01-17 20:28:44 +00:00
2026-02-15 22:11:31 +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-02-09 09:34:26 +00:00
2024-01-10 02:58:13 +00:00
2026-02-08 21:57:40 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-02-15 22:11:31 +00:00
2026-01-13 23:24:29 +00:00
2026-02-15 22:11:31 +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-02-09 09:34:26 +00:00
2026-02-09 09:34:26 +00:00
2026-02-15 22:11:31 +00:00
2026-02-12 22:50:25 +00:00
2026-02-15 22:11:31 +00:00
2026-01-27 22:35:47 +00:00
2026-02-15 22:11:31 +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-02-12 22:50:25 +00:00
2026-01-27 22:35:47 +00:00
2026-02-15 22:11:31 +00:00
2026-01-27 22:35:47 +00:00
2026-01-27 22:35:47 +00:00
2026-02-15 22:11:31 +00:00
2026-08-21 13:29:53 +02:00
2026-03-02 22:34:45 +00:00
2026-03-02 22:34:45 +00:00
2026-03-02 22:34:45 +00:00