OSDN Git Service

* cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Apr 1998 15:41:36 +0000 (15:41 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Apr 1998 15:41:36 +0000 (15:41 +0000)
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

gcc/ChangeLog
gcc/cplus-dem.c
libiberty/ChangeLog
libiberty/cplus-dem.c

index ed06f05..64d05df 100644 (file)
@@ -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.
index abc85bb..21e3b6e 100644 (file)
@@ -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;
index acd96f2..1b98c55 100644 (file)
@@ -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.
index abc85bb..21e3b6e 100644 (file)
@@ -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;