Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You let it operate on a copy of the input data and check integrity afterwards. If it doesn't reach a valid state you discard it as failed/corrupted.


There are many pieces of process global runtime state that can get corrupted that are irrelevant to the input data.

You can get lucky and sometimes avoid corruption, but eventually you're going to hit something important like leaving a libc heap allocator mutex locked when you kill a thread in the middle of an allocation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: