media-io / yaserde

Yet Another Serializer/Deserializer
MIT License
175 stars 57 forks source link

Fix unwrap being hit in macro when malicious input is given #136

Closed ephraimkunz closed 2 years ago

ephraimkunz commented 2 years ago

I ran cargo fuzz on my code and noticed a crash in the deserializer code when malformed XML was deserialized. Instead of panicking due to the unwrap, return an error.