mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-21 06:03:54 +00:00
Add invalid chunk data testing in info mode.
This commit is contained in:
parent
3f375385a5
commit
33a6bf6234
1 changed files with 2 additions and 0 deletions
2
lrzip.c
2
lrzip.c
|
|
@ -1030,6 +1030,8 @@ next_chunk:
|
|||
chunk_total += chunk_size;
|
||||
print_verbose("Chunk size: %lld\n", chunk_size);
|
||||
}
|
||||
if (unlikely(chunk_byte < 1 || chunk_byte > 8 || chunk_size < 0))
|
||||
failure("Invalid chunk data\n");
|
||||
while (stream < NUM_STREAMS) {
|
||||
int block = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue