summaryrefslogtreecommitdiffstats
path: root/libiberty
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-26 15:41:36 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-26 15:41:36 +0000
commit0fc087a4381cf9304de0ea12ba618186708b7c04 (patch)
treef6e2081283e8a479f677878d976f41b4b20c6ea6 /libiberty
parent7da26b915fe6a8f1a6f13fabd043328ae86d8a5f (diff)
downloadppe42-gcc-0fc087a4381cf9304de0ea12ba618186708b7c04.tar.gz
ppe42-gcc-0fc087a4381cf9304de0ea12ba618186708b7c04.zip
* cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
length in the name of a virtual table. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19417 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/cplus-dem.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index acd96f248eb..1b98c559f48 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 abc85bbe5d1..21e3b6e1e0d 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;
OpenPOWER on IntegriCloud