diff options
Diffstat (limited to 'include/string.h')
| -rw-r--r-- | include/string.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/string.h b/include/string.h index bbf24fe..36f1df2 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -37,7 +37,7 @@ extern "C" { | |||
| 37 | #undef strncat | 37 | #undef strncat |
| 38 | #undef strncpy | 38 | #undef strncpy |
| 39 | 39 | ||
| 40 | __access(write_only, 1) | 40 | __access(write_only, 1, 3) |
| 41 | __access(read_only, 2, 3) | 41 | __access(read_only, 2, 3) |
| 42 | _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od, | 42 | _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od, |
| 43 | const void * _FORTIFY_POS0 __os, size_t __n) | 43 | const void * _FORTIFY_POS0 __os, size_t __n) |
| @@ -57,7 +57,7 @@ _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od, | |||
| 57 | return __builtin_memcpy(__od, __os, __n); | 57 | return __builtin_memcpy(__od, __os, __n); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | __access(write_only, 1) | 60 | __access(write_only, 1, 3) |
| 61 | __access(read_only, 2, 3) | 61 | __access(read_only, 2, 3) |
| 62 | _FORTIFY_FN(memmove) void *memmove(void * _FORTIFY_POS0 __d, | 62 | _FORTIFY_FN(memmove) void *memmove(void * _FORTIFY_POS0 __d, |
| 63 | const void * _FORTIFY_POS0 __s, size_t __n) | 63 | const void * _FORTIFY_POS0 __s, size_t __n) |
| @@ -70,7 +70,7 @@ _FORTIFY_FN(memmove) void *memmove(void * _FORTIFY_POS0 __d, | |||
| 70 | return __orig_memmove(__d, __s, __n); | 70 | return __orig_memmove(__d, __s, __n); |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | __access(write_only, 1) | 73 | __access(write_only, 1, 3) |
| 74 | _FORTIFY_FN(memset) void *memset(void * _FORTIFY_POS0 __d, int __c, size_t __n) | 74 | _FORTIFY_FN(memset) void *memset(void * _FORTIFY_POS0 __d, int __c, size_t __n) |
| 75 | { | 75 | { |
| 76 | size_t __b = __bos(__d, 0); | 76 | size_t __b = __bos(__d, 0); |
