• M
    add_item_to_object: Fix use-after-free when string is aliased · 22a7d04f
    Max Bruckner 提交于
    If the `string` property of the item that is added is an alias to the
    `string` parameter of `add_item_to_object`, and `constant` is false,
    `cJSON_strdup` would access the string after it has been freed.
    
    Thanks @hhallen for reporting this in #248.
    22a7d04f
cJSON.c 71.5 KB