demangle/gcc2: Skip count > length should skip to the end.
This is the behavior the code expects.
This commit is contained in:
@@ -49,6 +49,8 @@ public:
|
|||||||
{
|
{
|
||||||
if (count > fLength) {
|
if (count > fLength) {
|
||||||
TRACE("Input::Skip(): fOffset > fLength\n");
|
TRACE("Input::Skip(): fOffset > fLength\n");
|
||||||
|
fString += fLength;
|
||||||
|
fLength = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ DemangleTest::RunGCC2Tests()
|
|||||||
"registerInstance__Q26icu_5713BreakIteratorPQ26icu_5713BreakIteratorRCQ26icu_576Locale18UBreakIteratorTypeR10UErrorCode");
|
"registerInstance__Q26icu_5713BreakIteratorPQ26icu_5713BreakIteratorRCQ26icu_576Locale18UBreakIteratorTypeR10UErrorCode");
|
||||||
|
|
||||||
// Previously caused crashes
|
// Previously caused crashes
|
||||||
TEST("SetTo__Q282_GLOBAL_", "SetTo__Q282_GLOBAL_");
|
TEST("SetTo__Q282_GLOBAL_", "_GLOBAL_::SetTo()");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user