nDPI/tests/unit
Ivan Nardi 6b38c1c258
serializer: reject over-length strings instead of truncating (GHSA-q2gg-6j82-vwj5) (#3310)
ndpi_serialize_string_string() computed the value length with strlen()
and passed it into the u_int16_t value_len parameter of
ndpi_serialize_string_string_len(), silently truncating any value longer
than 65535 bytes (mod 65536). Fail with -1 instead.

Add serializerCsvMaxLengthUnitTest() covering the longest representable
value, rejection of an over-length value, and that the serializer stays
usable afterwards.
2026-11-03 17:36:56 +01:00
..
Makefile.in Build: compiler-driven header dependency tracking; fix --with-ndpi-pro (#3239) 2026-08-29 14:54:11 +02:00
unit.c serializer: reject over-length strings instead of truncating (GHSA-q2gg-6j82-vwj5) (#3310) 2026-11-03 17:36:56 +01:00