Displaying 1 result from an estimated 1 matches for "visibiilty".
Did you mean:
visibililty
2019 Dec 04
2
[cfe-dev] clang and -D_FORTIFY_SOURCE=1
> Are you sure you've diagnosed the issue correctly? __builtin___memcpy_chk
works correctly, as far as I know.
100% sure. Let's have a look at the output of
#include <string.h>
static char dest[10];
char* square(int n) {
memcpy(dest, "hello", n);
return dest;
}
compiled with -D_FORTIFY_SOURCE=1 -O1 : https://godbolt.org/z/UvABWp
Clang issues a call to