mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-17 22:09:59 +01:00
Check for invalid expected sizes and abort.
This commit is contained in:
parent
ed51e14a4b
commit
907b66b8cb
2
lrzip.c
2
lrzip.c
|
|
@ -803,6 +803,8 @@ bool decompress_file(rzip_control *control)
|
|||
if (!STDIN) {
|
||||
if (unlikely(!read_magic(control, fd_in, &expected_size)))
|
||||
return false;
|
||||
if (unlikely(expected_size < 0))
|
||||
fatal_return(("Invalid expected size %lld\n", expected_size), false);
|
||||
}
|
||||
|
||||
if (!STDOUT && !TEST_ONLY) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue