https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92589
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Kees Cook from comment #2) > Is there anything to enforce a strict "only consider empty array size as > flexible array member" mode? This is an unfortunate weakening of the array > bounds checker as there are plenty of structures that have a fixed-size > array as the final member. There is -fsanitize=bounds-strict.