demangle/gcc2: Skip count > length should skip to the end.

This is the behavior the code expects.
This commit is contained in:
Augustin Cavalier 2018-09-23 14:47:26 -04:00
parent 80be7d09c5
commit 3e4c34234e
2 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,8 @@ public:
{
if (count > fLength) {
TRACE("Input::Skip(): fOffset > fLength\n");
fString += fLength;
fLength = 0;
return;
}

View File

@ -37,7 +37,7 @@ DemangleTest::RunGCC2Tests()
"registerInstance__Q26icu_5713BreakIteratorPQ26icu_5713BreakIteratorRCQ26icu_576Locale18UBreakIteratorTypeR10UErrorCode");
// Previously caused crashes
TEST("SetTo__Q282_GLOBAL_", "SetTo__Q282_GLOBAL_");
TEST("SetTo__Q282_GLOBAL_", "_GLOBAL_::SetTo()");
}