Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #238 - epilys:master, r=mbrubeck
Return allocation error in deserialize instead of panicking There's no way to catch allocation errors since out of memory errors cause an abort. Fail gracefully by returning the error instead of panicking. I happened upon this error when deserializing untrusted data with bincode. Bincode provides a byte limit bound but for sequences it's not possible to enforce this through serde since collection types like smallvec handle their own allocation.
- Loading branch information