[Bug string/20558] POSIX bcopy/bzero decls do not implement Object Size Checking
adhemerval.zanella at linaro dot org
sourceware-bugzilla@sourceware.org
Wed Jan 4 14:20:00 GMT 2017
https://sourceware.org/bugzilla/show_bug.cgi?id=20558
Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adhemerval.zanella at linaro dot o
| |rg
--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
From features.h, default if other than _GNU_SOURCE or _DEFAULT_SOURCE is
defined _DEFAULT_SOURCE is used. This is the case for the compiler usage on
first case (gcc -O2 -D_FORTIFY_SOURCE=2).
Now, if one explicit specific _POSIX_SOURCE (second case), _DEFAULT_SOURCE is
then not defined and then __USE_MISC is also not defined. __USE_MISC sets if
the fortified macros for bzero/bcopy will be used.
This is the expected behavior imho opinion and the way to use the fortified
wrappers for bzero/bcopy is to explicit defines _DEFAULT_SOURCE or __USE_MISC
when _POSIX_SOURCE is used.
This is not a bug IMHO.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list