fixed uninitialization error, reported by Maciej Adamczyk

This commit is contained in:
Yann Collet 2016-04-11 14:10:23 +02:00
parent 81e493651a
commit d673d4cf66

View File

@ -482,6 +482,7 @@ size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx* dctx,
break;
case 3:
litSize = ((istart[0] & 15) << 16) + (istart[1] << 8) + istart[2];
if (srcSize<4) return ERROR(corruption_detected);
break;
}
if (litSize > ZSTD_BLOCKSIZE_MAX) return ERROR(corruption_detected);