BurntSushi / rust-snappy

Snappy compression implemented in Rust (including the Snappy frame format).
BSD 3-Clause "New" or "Revised" License
444 stars 43 forks source link

Fix panic in FrameDecoder #30

Closed pawanjay176 closed 4 years ago

pawanjay176 commented 4 years ago

Fixes #29

Returns an UnsupportedChunkLength error if len < 4 as suggested.

Also modifies the docs on the UnsupportedChunkLength error variant to be more generic.

pawanjay176 commented 4 years ago

Hey @BurntSushi, keen to get this merged. Please let me know if I need to make any changes. Thanks again :)