diff options
Diffstat (limited to 'lib/zstd/decompress.c')
-rw-r--r-- | lib/zstd/decompress.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/zstd/decompress.c b/lib/zstd/decompress.c index b17846725ca0..269ee9a796c1 100644 --- a/lib/zstd/decompress.c +++ b/lib/zstd/decompress.c | |||
@@ -1768,6 +1768,7 @@ size_t ZSTD_decompressContinue(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, c | |||
1768 | return 0; | 1768 | return 0; |
1769 | } | 1769 | } |
1770 | dctx->expected = 0; /* not necessary to copy more */ | 1770 | dctx->expected = 0; /* not necessary to copy more */ |
1771 | /* fall through */ | ||
1771 | 1772 | ||
1772 | case ZSTDds_decodeFrameHeader: | 1773 | case ZSTDds_decodeFrameHeader: |
1773 | memcpy(dctx->headerBuffer + ZSTD_frameHeaderSize_prefix, src, dctx->expected); | 1774 | memcpy(dctx->headerBuffer + ZSTD_frameHeaderSize_prefix, src, dctx->expected); |
@@ -2375,7 +2376,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream *zds, ZSTD_outBuffer *output, ZSTD_inB | |||
2375 | } | 2376 | } |
2376 | zds->stage = zdss_read; | 2377 | zds->stage = zdss_read; |
2377 | } | 2378 | } |
2378 | /* pass-through */ | 2379 | /* fall through */ |
2379 | 2380 | ||
2380 | case zdss_read: { | 2381 | case zdss_read: { |
2381 | size_t const neededInSize = ZSTD_nextSrcSizeToDecompress(zds->dctx); | 2382 | size_t const neededInSize = ZSTD_nextSrcSizeToDecompress(zds->dctx); |
@@ -2404,6 +2405,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream *zds, ZSTD_outBuffer *output, ZSTD_inB | |||
2404 | zds->stage = zdss_load; | 2405 | zds->stage = zdss_load; |
2405 | /* pass-through */ | 2406 | /* pass-through */ |
2406 | } | 2407 | } |
2408 | /* fall through */ | ||
2407 | 2409 | ||
2408 | case zdss_load: { | 2410 | case zdss_load: { |
2409 | size_t const neededInSize = ZSTD_nextSrcSizeToDecompress(zds->dctx); | 2411 | size_t const neededInSize = ZSTD_nextSrcSizeToDecompress(zds->dctx); |
@@ -2436,6 +2438,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream *zds, ZSTD_outBuffer *output, ZSTD_inB | |||
2436 | /* pass-through */ | 2438 | /* pass-through */ |
2437 | } | 2439 | } |
2438 | } | 2440 | } |
2441 | /* fall through */ | ||
2439 | 2442 | ||
2440 | case zdss_flush: { | 2443 | case zdss_flush: { |
2441 | size_t const toFlushSize = zds->outEnd - zds->outStart; | 2444 | size_t const toFlushSize = zds->outEnd - zds->outStart; |