rsyslog / libfastjson

a fast json library for C
Other
54 stars 32 forks source link

bugfix: constant key names not properly handled #149

Closed rgerhards closed 6 years ago

rgerhards commented 6 years ago

if fjson_object_object_add_ex() is used with option FJSON_OBJECT_KEY_IS_CONSTANT, fjson_object_object_del() will still try to delete the key name. Depending on use, this can lead to double-free, use-after-free or no problem.

see also https://github.com/rsyslog/rsyslog/issues/1839 closes https://github.com/rsyslog/libfastjson/issues/148