https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98609
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> --- I would recommend changing just libsanitizer to allow something like UBSAN_OPTIONS=vla_bounds_allow_zero=1. Should be relatively small change.