zeek/tools/binpac
Jon Siwek d6fc439c21 binpac: GH-4: fix premature loop termination when parsing known-length arrays
For arrays with a length expression (e.g. uint16[size] instead of
uint16[]), the parsing loop would consider reaching the end of the
data buffer as a successful loop termination condition even if it's
not yet parsed the required number of elements.

Now, for such arrays, the loop will only terminate based on the loop
counter (derived from the length expression) or else it will throw an
OOB exception when trying to parse an element and finding not enough
data in the buffer.

Credit to Tomas Bortoli for reporting the problem and proposing
patches.
2025-08-20 08:52:23 -07:00
..
lib binpac: BIT-1914: move &check implementation to new &enforce attribute 2025-08-20 08:52:23 -07:00
patches binpac: Distribution cleanup. 2025-08-20 08:52:23 -07:00
src binpac: GH-4: fix premature loop termination when parsing known-length arrays 2025-08-20 08:52:23 -07:00
CMakeLists.txt binpac: Raise minimum required CMake version to 2.6.3 2025-08-20 08:52:23 -07:00
TODO binpac: Initial import of Bro's binpac subdirectory from SVN r7088. 2025-08-20 08:52:22 -07:00