commit | 62b03b85a56a7b98e6eef237deeff1a8b41f8fb8 | [log] [tgz] |
---|---|---|
author | Nikias Bassen <nikias@gmx.li> | Mon Jan 09 19:01:14 2023 +0100 |
committer | Nikias Bassen <nikias@gmx.li> | Mon Jan 09 19:01:14 2023 +0100 |
tree | f0217b075c235ea593f271e1c3a1fdd804d2dc77 | |
parent | 491a3acc1015951042c95c389a10634e331818c4 [diff] |
oplist: Fix use-after-free by setting free'd pointer to NULL Credit to OSS-Fuzz
diff --git a/src/oplist.c b/src/oplist.c index b3b782f..df12fb3 100644 --- a/src/oplist.c +++ b/src/oplist.c
@@ -851,6 +851,7 @@ } else if (ctx.pos < ctx.end && *ctx.pos == '=') { /* attempt to parse this as 'strings' data */ plist_free(*plist); + *plist = NULL; plist_t pl = plist_new_dict(); ctx.pos = plist_ostep; parse_dict_data(&ctx, pl);