mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-15 12:58:29 +01:00
Limit the input size. With a short @find, and a long `init` and `replace` it’s quite possible to hit OOM. We’re not interested in testing that — it’s up to the caller of `g_string_replace()` to handle that. 1KB on each of the inputs should be plenty to find any string parsing or pointer arithmetic bugs in `g_string_replace()`. Signed-off-by: Philip Withnall <pwithnall@gnome.org> oss-fuzz#371233785
2.2 KiB
2.2 KiB