Home GnuPG
Diffusion GPGME fdc07b3ddc2f

json: Only use calloc instead of malloc

Description

json: Only use calloc instead of malloc

* src/cJSON.c, src/gpgme-json.c (CALLOC_ONLY): New define
to change xmalloc / xtrymalloc to use calloc.

Some people consider malloc dangerous as it might allow an
information leak.

Details

Provenance
aheineckeAuthored on Aug 8 2018, 2:25 PM
Parents
rM974a95db04f9: json: Add checks when skipping byte
Branches
Unknown
Tags
Unknown