arm: sanitizer stringop-overflow
authorAlan Modra <amodra@gmail.com>
Wed, 2 Aug 2023 23:30:05 +0000 (09:00 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 3 Aug 2023 11:49:57 +0000 (21:19 +0930)
commitb43e801e28550653ecef2b7e6b15125516ab1a58
tree4bab9cb8bf63ccb949abe75ce167973e43e6297c
parentebfd369c3e9c18318c46d4ddc3ad016905d975ea
arm: sanitizer stringop-overflow

In function 'memset',
    inlined from 'create_unwind_entry' at /home/alan/src/binutils-gdb/gas/config/tc-arm.c:27881:3:
/usr/include/bits/string_fortified.h:59:10: error: '__builtin_memset' specified size between 2147483652 and 4294967295 exceeds maximum object size 2147483647 [-Werror=stringop-overflow=]
   59 |   return __builtin___memset_chk (__dest, __ch, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   60 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~

* config/tc-arm.c (create_unwind_entry): Return after bad size,
and bad opcode count.
gas/config/tc-arm.c