zeek/testing/btest/scripts/base/frameworks/input/raw
Arne Welzel ecfa03ea1d input/Raw: Rework GetLine()
This isn't a straightforward fix, unfortunately. The existing GetLine()
implementation didn't deal well with input that's incrementally produced
where individually read chunks wouldn't end with the separator.

The prior implementation increased the buffer each time it failed to find
a separator in the current buffer, but then also ended up not searching the
full new buffer size for the terminator, doing that endlessly.

This change reworks the Raw reader to rely only on bufpos for reading
and searching purposes and skip reallocation if the buffer size if it
wasn't actually exhausted.

Closes #3957
2024-10-09 14:21:07 -07:00
..
basic.zeek GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00
execute.zeek GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00
executestdin.zeek Update btest-diff calls on binary files to using "--binary" 2020-12-06 20:19:52 -08:00
executestream-leftover.zeek input/Raw: Rework GetLine() 2024-10-09 14:21:07 -07:00
executestream-no-last-separator.zeek input/Raw: Rework GetLine() 2024-10-09 14:21:07 -07:00
executestream-slow-long.zeek input/Raw: Rework GetLine() 2024-10-09 14:21:07 -07:00
executestream-slow.zeek input/Raw: Rework GetLine() 2024-10-09 14:21:07 -07:00
executestream.zeek GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00
long.zeek GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00
offset.zeek GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00
rereadraw.zeek btest/input/raw: Fix reread test 2023-05-22 11:06:54 +02:00
rereadraw2.zeek input/Raw: Avoid reading file twice in MODE_REREAD 2023-05-22 11:06:25 +02:00
stderr.zeek Spelling testing 2022-11-16 20:05:03 -05:00
streamraw.zeek GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00
streamtail.zeek Fix tail -F semantics when want_record=F and add tests for the new features 2022-07-12 17:57:50 -07:00
streamtail2.zeek Fix tail -F semantics when want_record=F and add tests for the new features 2022-07-12 17:57:50 -07:00