mirror of
https://github.com/facebook/zstd.git
synced 2025-10-07 00:12:40 -04:00
fixed uninitialization error, reported by Maciej Adamczyk
This commit is contained in:
parent
81e493651a
commit
d673d4cf66
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user