Skip to content
Commit 3c0eac3c authored by Martí Bolívar's avatar Martí Bolívar Committed by Anas Nashif
Browse files

lib: json: escape strings in-place



Currently, json_escape() allocates a temporary buffer on the stack
that's the size of the string being escaped.

Stack space is precious and longer JSON strings can run into the
hundreds of bytes, so re-implement this routine to escape in place.

Signed-off-by: default avatarMarti Bolivar <marti.bolivar@linaro.org>
parent b192ea2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment