re PR other/2719 (demangler crash)

2001-12-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>

        PR other/2719
        * cplus-dem.c (consume_count): Treat negative count as an error.
        * testsuite/demangle-expected: Added testcase.

From-SVN: r47952
This commit is contained in:
Craig Rodrigues 2001-12-12 23:08:07 +00:00
parent 8582c27b18
commit 63de15a4b4
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR other/2719
* cplus-dem.c (consume_count): Treat negative count as an error.
* testsuite/demangle-expected: Added testcase.
Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
* configure.in: Hardcode that vfork works on VMS host.

View File

@ -574,6 +574,9 @@ consume_count (type)
(*type)++;
}
if (count < 0)
count = -1;
return (count);
}

View File

@ -2586,3 +2586,7 @@ JArray.t(JArray[])
--format=java
_ZN4Prim1iEibcdfwPN4java4lang6StringEsx
Prim.i(int, boolean, byte, double, float, char, java.lang.String, short, long)
#
--format=hp
_Utf58_0_1__1_2147483647__2147483648
_Utf58_0_1__1_2147483647__2147483648