mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Removing unnecessary check from decode side
This commit is contained in:
@ -856,8 +856,7 @@ static size_t decode_literals_compressed(frame_context_t *const ctx,
|
|||||||
// Impossible
|
// Impossible
|
||||||
IMPOSSIBLE();
|
IMPOSSIBLE();
|
||||||
}
|
}
|
||||||
if (regenerated_size > MAX_LITERALS_SIZE ||
|
if (regenerated_size > MAX_LITERALS_SIZE) {
|
||||||
compressed_size >= regenerated_size) {
|
|
||||||
CORRUPTION();
|
CORRUPTION();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user