#7185: Add Assertion to detect memory corruption.
This commit is contained in:
parent
66e047ee7d
commit
b22071cb54
@ -9396,6 +9396,7 @@ void Tokenizer::simplifyAsm2()
|
|||||||
}
|
}
|
||||||
// When the assembly code has been cleaned up, no @ is allowed
|
// When the assembly code has been cleaned up, no @ is allowed
|
||||||
for (const Token *tok = list.front(); tok; tok = tok->next()) {
|
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() == "(") {
|
if (tok->str() == "(") {
|
||||||
tok = tok->link();
|
tok = tok->link();
|
||||||
if (!tok)
|
if (!tok)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user