search for: __builtin___memcpy_chk

Displaying 3 results from an estimated 3 matches for "__builtin___memcpy_chk".

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 Clan...
2019 Dec 03
5
clang and -D_FORTIFY_SOURCE=1
...ng. To assert that I wrote a small test suite: https://github.com/serge-sans-paille/fortify-test-suite And indeed, clang doesn't pass it, mostly because it turns call to __builtin__(.*)_chk into calls to __builtin__\1. We need to support the runtime behavior of the following builtins: - __builtin___memcpy_chk - __builtin___memmove_chk - __builtin___mempcpy_chk - __builtin___memset_chk - __builtin___snprintf_chk - __builtin___sprintf_chk - __builtin___stpcpy_chk - __builtin___strcat_chk - __builtin___strcpy_chk - __builtin___strncat_chk - __builtin___strncpy_chk - __builtin___vsnprintf_chk - __builtin___...
2012 Oct 10
4
[Bug 55832] New: xf86-video-nouveau-1.0.2 - Xorg crashes once a week : segmentation fault in NVRefreshArea
...gdb) cont Continuing. After one day of working I see in the debugger window: ... (gdb) cont Continuing. Program received signal SIGSEGV, Segmentation fault. NVRefreshArea (pScrn=0x10c4420, num=<optimized out>, pbox=<optimized out>) at /usr/include/bits/string3.h:52 52 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); (gdb) bt f #0 NVRefreshArea (pScrn=0x10c4420, num=<optimized out>, pbox=<optimized out>) at /usr/include/bits/string3.h:52 pNv = 0x10c49a0 x1 = <optimized out> y1 = <optimized out> x2 = <optimized...