Skip to content

Commit

Permalink
jsonbuilder: check allocation when growing buffer
Browse files Browse the repository at this point in the history
Provide a wrapper around "push" and "push_str" on the internal buffer
that will "try_reserve" data before growing in an attempt to handle
memory allocation errors.

Ticket: OISF#6057
  • Loading branch information
jasonish committed May 9, 2023
1 parent 390ebf7 commit 9679a07
Showing 1 changed file with 105 additions and 78 deletions.

0 comments on commit 9679a07

Please sign in to comment.