diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cplus-dem.c | 2 | ||||
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/cplus-dem.c | 2 |
4 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed06f05..64d05df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> + + * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the + length in the name of a virtual table. + Sun Apr 26 01:21:06 1998 Richard Henderson <rth@cygnus.com> * alpha.c (print_operand): Don't add 'v' suffix for ALPHA_FPTM_N. diff --git a/gcc/cplus-dem.c b/gcc/cplus-dem.c index abc85bb..21e3b6e 100644 --- a/gcc/cplus-dem.c +++ b/gcc/cplus-dem.c @@ -2003,7 +2003,7 @@ gnu_special (work, mangled, declp) ".<digits>" indicating a static local symbol. In any case, declare victory and move on; *don't* try to use n to allocate. */ - if (n >= strlen (*mangled)) + if (n > strlen (*mangled)) { success = 1; break; diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index acd96f2..1b98c55 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> + + * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the + length in the name of a virtual table. + Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> * cplus-dem.c (struct work stuff): Add field for B and K mangle codes. diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index abc85bb..21e3b6e 100644 --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -2003,7 +2003,7 @@ gnu_special (work, mangled, declp) ".<digits>" indicating a static local symbol. In any case, declare victory and move on; *don't* try to use n to allocate. */ - if (n >= strlen (*mangled)) + if (n > strlen (*mangled)) { success = 1; break; |