Solution: introducing new bug
// main.c
int main ()
{
int locVar;
func (1, 2);
return 0;
}
; Expects the callee to see:
EBP -> Previous EBP
Return address
1
2
locVar
// func.c
int func (int a, int b, int c)
{
// use parameters
return 0;
}
; the callee sees:
EBP -> Previous EBP
Return address
a
b
c
...