mirror of
git://c9x.me/qbe.git
synced 2026-04-07 02:49:47 +00:00
check for overflow in ssa.c (abi fuzzer)
This commit is contained in:
parent
337b10f6ed
commit
a67ffa423c
@ -77,7 +77,7 @@ enum Reg {
|
|||||||
|
|
||||||
enum {
|
enum {
|
||||||
NString = 32,
|
NString = 32,
|
||||||
NPred = 15,
|
NPred = 63,
|
||||||
NIns = 8192,
|
NIns = 8192,
|
||||||
NAlign = 3,
|
NAlign = 3,
|
||||||
NSeg = 32,
|
NSeg = 32,
|
||||||
|
|||||||
@ -464,6 +464,8 @@ renblk(Blk *b, Name **stk, Fn *fn)
|
|||||||
t = p->to.val;
|
t = p->to.val;
|
||||||
if ((t=fn->tmp[t].visit)) {
|
if ((t=fn->tmp[t].visit)) {
|
||||||
m = p->narg++;
|
m = p->narg++;
|
||||||
|
if (m == NPred)
|
||||||
|
diag("ssa: too many phi arguments");
|
||||||
p->arg[m] = getstk(t, b, stk);
|
p->arg[m] = getstk(t, b, stk);
|
||||||
p->blk[m] = b;
|
p->blk[m] = b;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user