Actions
Bug #6057
closedrust/jsonbuilder: better handling of memory allocation errors
Affected Versions:
Effort:
Difficulty:
Label:
Description
As JsonBuilder is in Rust, memory allocation errors will lead to a panic/abort.
Rust 1.57.0 and newer have `try_reserve` for most allocated data structures https://doc.rust-lang.org/std/string/struct.String.html#method.try_reserve which JsonBuilder could use when adding new data. This will let us reason about growing the data like we do in C, and probably better than just wrapping entry points in catch_unwind
.
Updated by Jason Ish over 1 year ago
- Status changed from New to In Progress
- Assignee changed from OISF Dev to Jason Ish
Updated by Philippe Antoine over 1 year ago
- Related to Security #5851: rust: handle allocation failures added
Updated by Jason Ish over 1 year ago
- Status changed from In Progress to Closed
- Target version changed from TBD to 7.0.0-rc2
Actions