string: Enable __FORTIFY_LEVEL=3
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 30 Dec 2020 05:39:58 +0000 (11:09 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 31 Dec 2020 11:25:21 +0000 (16:55 +0530)
commit2a3224c53653214cbba2ec23424702193c80ea3b
treec34edd8ad17636d2aef26f16dd69ebcff87d1dbe
parentc43c5796121bc5bcc0867f02e5536874aa8196c1
string: Enable __FORTIFY_LEVEL=3

This change enhances fortified string functions to use
__builtin_dynamic_object_size under _FORTIFY_SOURCE=3 whenever the
compiler supports it.
include/string.h
string/bits/string_fortified.h
string/bits/strings_fortified.h