commit | ce9644a1328c18d3bc9118fecca99e0d30687294 | [log] [tgz] |
---|---|---|
author | Dieter Baron <dillo@nih.at> | Fri Sep 10 23:56:03 2021 +0200 |
committer | GitHub <noreply@github.com> | Fri Sep 10 23:56:03 2021 +0200 |
tree | 314b8d6997e96a2e682e87c3bd04c352876dd2f1 | |
parent | c4f00f4995b6e461b48a37bf17b43315c242b45f [diff] | |
parent | 32028b567b09cea9d61e0b4cdc79e43b8b19093a [diff] |
Merge pull request #258 from wargio/patch-1 Use after free when fseeko fails
diff --git a/lib/zip_source_file_stdio_named.c b/lib/zip_source_file_stdio_named.c index 5387c76..8027e73 100644 --- a/lib/zip_source_file_stdio_named.c +++ b/lib/zip_source_file_stdio_named.c
@@ -255,6 +255,7 @@ (void)remove(temp); free(temp); zip_error_set(&ctx->error, ZIP_ER_TMPOPEN, errno); + return -1; } ctx->fout = tfp;