about summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@wdc.com>2020-08-31 14:26:47 +0100
committerJoseph Myers <joseph@codesourcery.com>2020-09-07 17:01:06 +0000
commit3357087b2a95a33dbb38579c9bf7b23f1f85c7a1 (patch)
treea286e80adaa7f74aa4caa80176e666412ee4db90 /time
parent7b51d9f69e742d29b335f4ced07ed0f191b12f82 (diff)
downloadglibc-3357087b2a95a33dbb38579c9bf7b23f1f85c7a1.tar.gz
glibc-3357087b2a95a33dbb38579c9bf7b23f1f85c7a1.tar.xz
glibc-3357087b2a95a33dbb38579c9bf7b23f1f85c7a1.zip
string: Fix GCC 11 `-Werror=stringop-overread' error
Fix a compilation error:

In function '__rawmemchr',
    inlined from '__rawmemchr' at rawmemchr.c:27:1:
rawmemchr.c:36:12: error: 'memchr' specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overread]
   36 |     return memchr (s, c, (size_t)-1);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
../o-iterator.mk:9: recipe for target '.../string/rawmemchr.o' failed

introduced with GCC 11 commit d14c547abd48 ("Add -Wstringop-overread
for reading past the end by string functions.").
Diffstat (limited to 'time')
0 files changed, 0 insertions, 0 deletions