From: Jim Kingdon Date: Mon, 31 May 1993 18:08:56 +0000 (+0000) Subject: * stabsread.c (read_huge_number): Don't accept '0' + radix as part X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=574a2a49b7287cf9132a8e00cdbc5f4828aec941;p=binutils-gdb.git * stabsread.c (read_huge_number): Don't accept '0' + radix as part of number, just through '0' + radix - 1. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 90513ad82b7..c60a58bb3bb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Mon May 31 10:37:04 1993 Jim Kingdon (kingdon@cygnus.com) + + * stabsread.c (read_huge_number): Don't accept '0' + radix as part + of number, just through '0' + radix - 1. + Sun May 30 15:35:21 1993 Fred Fish (fnf@cygnus.com) * Makefile.in (SER_HARDWIRE): Temporarily comment out ser-tcp.o. diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 531b63b904f..0fdacb0cbfb 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -3122,7 +3122,7 @@ read_huge_number (pp, end, bits) } upper_limit = LONG_MAX / radix; - while ((c = *p++) >= '0' && c <= ('0' + radix)) + while ((c = *p++) >= '0' && c < ('0' + radix)) { if (n <= upper_limit) {