demangle/gcc2: Skip count > length should skip to the end.
This is the behavior the code expects.
This commit is contained in:
parent
80be7d09c5
commit
3e4c34234e
@ -49,6 +49,8 @@ public:
|
||||
{
|
||||
if (count > fLength) {
|
||||
TRACE("Input::Skip(): fOffset > fLength\n");
|
||||
fString += fLength;
|
||||
fLength = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -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()");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user