3 ms·
Allowing a bug to hijack the control flow of the program is much worse. To a limited extent you can do this even with pure data manipulation (function pointers
by slededit 9y ago
Allowing a bug to hijack the control flow of the program is much worse. To a limited extent you can do this even with pure data manipulation (function pointers, if statement inputs etc) but it is much more constrained.
FWIW Web Assembly doesn't mix the control and data stacks.
- titzer 9y agoCorrect. In fact, WebAssembly does not allow (indirectly) addressing the data stack at all. One must implement an addressable data stack in "userspace" with explicit management.