Bug 26439

Summary: UBSAN error: gas/config/tc-cr16.c:1533:6:
Product: binutils Reporter: Martin Liska <martin.liska>
Component: binutilsAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 2.34   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Martin Liska 2020-08-20 12:19:54 UTC
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver --disable-sim --disable-readline --disable-libdecnumber --enable-obsolete --target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: gas/macros/paren
Executing on host: sh -c {../as-new   /home/mliska/Programming/binutils/gas/testsuite/gas/macros/exit.s 2>gas.stderr}  /dev/null  (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:1533:6: runtime error: index 5 out of bounds for type 'char [5]'
Comment 1 Alan Modra 2020-08-30 05:17:38 UTC
I think this is probably a dup.  It's gone for me anyway.

*** This bug has been marked as a duplicate of bug 26441 ***