[PATCH] string: Fix tester build with fortify enable with gcc < 12
Joseph Myers
joseph@codesourcery.com
Wed Aug 9 21:34:27 GMT 2023
On Wed, 9 Aug 2023, bmahi496--- via Libc-alpha wrote:
> From: Mahesh Bodapati <bmahi496@linux.ibm.com>
>
> When building with fortify enabled, GCC < 12 issues a warning on the
> fortify strncat wrapper might overflow the destination buffer. However,
> GCC does not provide a specific flag to disable the warning (the
> failure is tied to -Werror). So to avoid disable all errors, only
> enable the check for GCC 12 or newer.
What is the exact diagnostic message?
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list