mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
note a worrying double-free possibility in torgzip.
nick? svn:r4537
This commit is contained in:
@@ -208,7 +208,7 @@ tor_gzip_uncompress(char **out, size_t *out_len,
|
||||
*out_len = stream->total_out;
|
||||
if (inflateEnd(stream)!=Z_OK) {
|
||||
log_fn(LOG_WARN, "Error freeing gzip structures");
|
||||
goto err;
|
||||
goto err; /* XXX this will try to inflateEnd again, right? is that bad? */
|
||||
}
|
||||
tor_free(stream);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user