mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-12 11:33:02 +01:00
valgrind spotted this one: a read off the end of the `stop_chars` buffer when `stop_chars_len == -1`, due to the fuzzing test not sticking to the requirement from `g_data_input_stream_read_upto()` that `stop_chars` must be nul-terminated if `stop_chars_len < 0`. This can happen when reading `fuzzing/README.md`, which is done as a smoketest when the fuzzing tests are run without the fuzzer, as normal unit tests. In this case, it made smoke. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2.9 KiB
2.9 KiB