Fix #16626 fix crash parsing truncated 7z file
This commit is contained in:
parent
aa36f75dba
commit
e9682cbbd6
|
@ -407,6 +407,7 @@ static int sevenzip_parse_file_init(file_archive_transfer_t *state,
|
|||
error:
|
||||
if (sevenzip_context)
|
||||
sevenzip_parse_file_free(sevenzip_context);
|
||||
state->context = NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue