diff options
| author | sin | 2015-02-25 10:35:16 +0000 |
|---|---|---|
| committer | sin | 2015-02-25 10:35:16 +0000 |
| commit | 74ab2844967648a4e618467237480c6aba37b166 (patch) | |
| tree | a80430449b6c4008c5cc47b837e24e84e98e041b /include | |
| parent | 816ad6764b842f354e46da8a5e36558fbaeeb2ad (diff) | |
Clarify comment a bit
Diffstat (limited to 'include')
| -rw-r--r-- | include/string.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h index 9d40e77..5623ffe 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -13,7 +13,8 @@ __fortify_memcpy(void *dest, const void *src, size_t n) | |||
| 13 | char *d = dest; | 13 | char *d = dest; |
| 14 | const char *s = src; | 14 | const char *s = src; |
| 15 | 15 | ||
| 16 | /* trap if pointers are overlapping but not if dest == src */ | 16 | /* trap if pointers are overlapping but not if dest == src. |
| 17 | * gcc seems to like to generate code that relies on dest == src */ | ||
| 17 | if ((d < s && d + n > s) || | 18 | if ((d < s && d + n > s) || |
| 18 | (s < d && s + n > d)) | 19 | (s < d && s + n > d)) |
| 19 | __builtin_trap(); | 20 | __builtin_trap(); |
