niax / rust-email

Implementation of MIME Messages for Rust
MIT License
62 stars 34 forks source link

Fix two panics and a hang on invalid inputs #63

Closed sno2 closed 1 year ago

sno2 commented 1 year ago

I fuzzed the parser and found these two panics and a denial of service bug when weird inputs were passed into the parser. This PR fixes these issues.

Fixes #31 #16

link2xt commented 9 months ago

@sno2 @niax Would be nice to have regression tests even though it is the result of a fuzzer. I.e. minimal examples that trigger this behavior to prevent the fixes from being accidentally reverted.