Re:Writing a JPEG Decoder in Rust – Part 2: Implementation I
by technion on Friday August 19, 2016 @09:57PM
(#12324716)
Given the history of vulnerabilities in tools like ImageMagick, that panic might still be a better position than an exploitable memory bug.
[ Parent
| on HN ]
Re:Writing a JPEG Decoder in Rust – Part 2: Implementation I
by conradev on Friday August 19, 2016 @11:50PM
(#12325098)
If you run it in a spawned thread, the thread will actually just unwind and disappear if it panics (by default).
But to detect panics, you can use `afl.rs` to fuzz a parser: https://github.com/frewsxcv/afl.rs#user-content-trophy-case