ZSTD_decompress now handles multiple frames

This commit is contained in:
Sean Purcell
2017-02-08 14:50:10 -08:00
parent 4e709712e1
commit ba2ad9f25c
3 changed files with 137 additions and 25 deletions
+3
View File
@@ -3992,6 +3992,9 @@ size_t ZSTDv07_frameSrcSize(const void* src, size_t srcSize)
ip += ZSTDv07_blockHeaderSize;
remainingSize -= ZSTDv07_blockHeaderSize;
if (blockProperties.blockType == bt_end) break;
if (cBlockSize > remainingSize) return ERROR(srcSize_wrong);
ip += cBlockSize;