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 16, 2023
1 parent 4b131d3 commit e58fc67
Showing 1 changed file with 106 additions and 78 deletions.

0 comments on commit e58fc67

Please sign in to comment.