Home GnuPG
Diffusion GPGME 1933f5b8056b

json: Minor cleanups in cJSON.c

Description

json: Minor cleanups in cJSON.c

* src/cJSON.c: Add comments on the origin of the code.
(parse_string): Allocate an extra byte for safeness.
(cJSON_AddItemToArray): Allo ARRAY to be NULL.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jul 16 2018, 2:42 PM
Parents
rM013a7f47ab48: json: Fix buffer overflow in cJSON.c
Branches
Unknown
Tags
Unknown