#7185: Add Assertion to detect memory corruption.

This commit is contained in:
Alexander Mai 2016-01-02 23:56:40 +01:00
parent 66e047ee7d
commit b22071cb54
1 changed files with 1 additions and 0 deletions

View File

@ -9396,6 +9396,7 @@ void Tokenizer::simplifyAsm2()
}
// When the assembly code has been cleaned up, no @ is allowed
for (const Token *tok = list.front(); tok; tok = tok->next()) {
assert(list.validateToken(tok)); // see #7185 "crash: Tokenizer::simplifyAsm2 on invalid code"
if (tok->str() == "(") {
tok = tok->link();
if (!tok)