[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] fix out-of-bounds error
From: |
Grégoire Sutre |
Subject: |
[patch] fix out-of-bounds error |
Date: |
Mon, 19 Mar 2012 00:12:16 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Iceowl/1.0b2 Icedove/3.1.16 |
I get the following warning on Debian GNU/Linux when compiling
with -O2. This is with GCC 4.6.3.
$ CFLAGS='-O2' ./configure && make
...
gdb/cstub.c: In function 'grub_gdb_trap':
gdb/cstub.c:83:21: error: array subscript is above array bounds
[-Werror=array-bounds]
cc1: all warnings being treated as errors
make[3]: *** [gdb/gdb_module-cstub.o] Error 1
make[3]: Leaving directory `/tmp/GRUB/trunk/grub-core'
Afaics, the out-of-bounds error is real, and the attached patch
fixes it.
Grégoire
gdb_cstub.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch] fix out-of-bounds error,
Grégoire Sutre <=