disallow phi nodes in the start block
AFL found this bug.
This commit is contained in:
parent
84bb28c042
commit
bbf90069b3
1 changed files with 1 additions and 1 deletions
2
parse.c
2
parse.c
|
@ -578,7 +578,7 @@ parseline(PState ps)
|
|||
op = next();
|
||||
DoOp:
|
||||
if (op == Tphi) {
|
||||
if (ps != PPhi)
|
||||
if (ps != PPhi || curb == curf->start)
|
||||
err("unexpected phi instruction");
|
||||
op = -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue