diff options
author | Jan-Benedict Glaw <jbglaw@lug-owl.de> | 2013-10-01 10:32:54 +0000 |
---|---|---|
committer | Jan-Benedict Glaw <jbglaw@lug-owl.de> | 2013-10-01 10:32:54 +0000 |
commit | e39462cbbb93f82b920eb5fd2b593003fe896182 (patch) | |
tree | 216ddc0d7560ca7d0c62298c242f00d85b7d8d58 /binutils/dwarf.c | |
parent | 0aebdefa32dd85acb39c05c5c1039bfe4304148f (diff) | |
download | gdb-e39462cbbb93f82b920eb5fd2b593003fe896182.zip gdb-e39462cbbb93f82b920eb5fd2b593003fe896182.tar.gz gdb-e39462cbbb93f82b920eb5fd2b593003fe896182.tar.bz2 |
2013-10-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* dwarf.c (SAFE_BYTE_GET): Fix argument check.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index bd73647..283aceb 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -288,7 +288,7 @@ read_uleb128 (unsigned char * data, #define SAFE_BYTE_GET(VAL, PTR, AMOUNT, END) \ do \ { \ - int dummy [sizeof (VAL) < (AMOUNT) ? -1 : 0] ATTRIBUTE_UNUSED ; \ + int dummy [sizeof (VAL) < (AMOUNT) ? -1 : 1] ATTRIBUTE_UNUSED ; \ unsigned int amount = (AMOUNT); \ if (((PTR) + amount) >= (END)) \ { \ |