Package: binutils-m68hc1x
Version: 1:2.18-3
Severity: important
User: [email protected]
Usertags: powerpcspe
Your package fails to build on powerpcspe [0]. It fails with:
| powerpc-linux-gnuspe-gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.18/gas
| -I. -D_GNU_SOURCE -I. -I../../binutils-2.18/gas -I../bfd
| -I../../binutils-2.18/gas/config -I../../binutils-2.18/gas/../include
| -I../../binutils-2.18/gas/.. -I../../binutils-2.18/gas/../bfd
| -DLOCALEDIR="\"/usr/share/locale\"" -W -Wall -Wstrict-prototypes
| -Wmissing-prototypes -Werror -g -O2 -c
| ../../binutils-2.18/gas/config/tc-m68hc11.c
| cc1: warnings being treated as errors
| ../../binutils-2.18/gas/config/tc-m68hc11.c: In function 'md_assemble':
| ../../binutils-2.18/gas/config/tc-m68hc11.c:2477: error: array subscript
| is above array bounds
| make[5]: *** [tc-m68hc11.o] Error 1
Looking at the relevant code line:
| char name[20];
| for (op_start = op_end = (unsigned char *) str;
| *op_end && nlen < 20 && !is_end_of_line[*op_end] && *op_end != ' ';
| op_end++)
| {
| name[nlen] = TOLOWER (op_start[nlen]);
| nlen++;
| }
| name[nlen] = 0;
Last line is 2477. So you may write to name[20] which is no longer
within the array boundary. So it is a real bug. I'm just courious why my
x86 gcc-4.4 does not throw an error here.
[0]
http://buildd.debian-ports.org/fetch.php?pkg=binutils-m68hc1x&arch=powerpcspe&ver=1%3A2.18-3&stamp=1275057522&file=log&as=raw
Sebastian
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]