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
.
Actions