mheinsen / seec

Program visualization and debugging for novice C programmers
http://seec-team.github.io/seec/
MIT License
3 stars 0 forks source link

Raise runtime error when returning a pointer to locally allocated memory. #51

Closed mheinsen closed 7 years ago

mheinsen commented 10 years ago

We already do some special work when a Function returns a pointer (passing the target object to the parent's call Instruction). We should also check that the returned pointer does not refer to an alloca (or byval argument) in the current Function, which will allow us to detect an error sooner than any subsequent invalid use of the pointer.

mheinsen commented 7 years ago

This issue was moved to seec-team/seec#11