Removing unnecessary check from decode side

This commit is contained in:
Bimba Shrestha 2019-10-16 16:26:46 -07:00
parent 24bc2e062d
commit 83749411a6

View File

@ -856,8 +856,7 @@ static size_t decode_literals_compressed(frame_context_t *const ctx,
// Impossible
IMPOSSIBLE();
}
if (regenerated_size > MAX_LITERALS_SIZE ||
compressed_size >= regenerated_size) {
if (regenerated_size > MAX_LITERALS_SIZE) {
CORRUPTION();
}