mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-24 11:24:05 +08:00
cplus-dem.c (demangle_qualified): Fix off-by-one when checking range of 'K' index.
Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * cplus-dem.c (demangle_qualified): Fix off-by-one when checking range of 'K' index. From-SVN: r23202
This commit is contained in:
parent
b351b287b7
commit
e0c13971df
@ -1,3 +1,8 @@
|
||||
Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
|
||||
|
||||
* cplus-dem.c (demangle_qualified): Fix off-by-one when checking
|
||||
range of 'K' index.
|
||||
|
||||
Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* choose-temp.c: Prototype mkstemps() when IN_GCC.
|
||||
|
@ -2271,7 +2271,7 @@ demangle_qualified (work, mangled, result, isfuncname, append)
|
||||
int idx;
|
||||
(*mangled)++;
|
||||
idx = consume_count_with_underscores (mangled);
|
||||
if (idx == -1 || idx > work -> numk)
|
||||
if (idx == -1 || idx >= work -> numk)
|
||||
success = 0;
|
||||
else
|
||||
string_append (&temp, work -> ktypevec[idx]);
|
||||
@ -2359,7 +2359,7 @@ demangle_qualified (work, mangled, result, isfuncname, append)
|
||||
int idx;
|
||||
(*mangled)++;
|
||||
idx = consume_count_with_underscores (mangled);
|
||||
if (idx == -1 || idx > work->numk)
|
||||
if (idx == -1 || idx >= work->numk)
|
||||
success = 0;
|
||||
else
|
||||
string_append (&temp, work->ktypevec[idx]);
|
||||
|
Loading…
Reference in New Issue
Block a user