diff options
| -rw-r--r-- | fuzz/oplist-leaks/clusterfuzz-testcase-minimized-oplist_fuzzer-6497436988473344 | 1 | ||||
| -rw-r--r-- | src/oplist.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/fuzz/oplist-leaks/clusterfuzz-testcase-minimized-oplist_fuzzer-6497436988473344 b/fuzz/oplist-leaks/clusterfuzz-testcase-minimized-oplist_fuzzer-6497436988473344 new file mode 100644 index 0000000..9d68933 --- /dev/null +++ b/fuzz/oplist-leaks/clusterfuzz-testcase-minimized-oplist_fuzzer-6497436988473344 | |||
| @@ -0,0 +1 @@ | |||
| " \ No newline at end of file | |||
diff --git a/src/oplist.c b/src/oplist.c index 168c921..0ad1d1c 100644 --- a/src/oplist.c +++ b/src/oplist.c | |||
| @@ -742,6 +742,7 @@ static int node_from_openstep(parse_ctx ctx, plist_t *plist) | |||
| 742 | ctx->pos++; | 742 | ctx->pos++; |
| 743 | } | 743 | } |
| 744 | if (ctx->pos >= ctx->end) { | 744 | if (ctx->pos >= ctx->end) { |
| 745 | plist_free_data(data); | ||
| 745 | PLIST_OSTEP_ERR("EOF while parsing quoted string at offset %ld\n", ctx->pos - ctx->start); | 746 | PLIST_OSTEP_ERR("EOF while parsing quoted string at offset %ld\n", ctx->pos - ctx->start); |
| 746 | ctx->err++; | 747 | ctx->err++; |
| 747 | goto err_out; | 748 | goto err_out; |
