Merge pull request #1828 from bimbashrestha/education_decoder_check

Removing unnecessary check on education decoder
This commit is contained in:
Yann Collet 2019-10-16 17:21:47 -07:00 committed by GitHub
commit edca7970ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}