[Bug sanitizer/92589] heuristic to avoid flexible array members too liberal

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 20 08:20:00 GMT 2019


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.


More information about the Gcc-bugs mailing list