hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/lib/zstd/decompress.c
....@@ -442,7 +442,7 @@
442442 case set_repeat:
443443 if (dctx->litEntropy == 0)
444444 return ERROR(dictionary_corrupted);
445
- /* fall-through */
445
+ /* fall through */
446446 case set_compressed:
447447 if (srcSize < 5)
448448 return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we need up to 5 for case 3 */
....@@ -1768,6 +1768,7 @@
17681768 return 0;
17691769 }
17701770 dctx->expected = 0; /* not necessary to copy more */
1771
+ /* fall through */
17711772
17721773 case ZSTDds_decodeFrameHeader:
17731774 memcpy(dctx->headerBuffer + ZSTD_frameHeaderSize_prefix, src, dctx->expected);
....@@ -2308,7 +2309,7 @@
23082309 switch (zds->stage) {
23092310 case zdss_init:
23102311 ZSTD_resetDStream(zds); /* transparent reset on starting decoding a new frame */
2311
- /* fall-through */
2312
+ /* fall through */
23122313
23132314 case zdss_loadHeader: {
23142315 size_t const hSize = ZSTD_getFrameParams(&zds->fParams, zds->headerBuffer, zds->lhSize);
....@@ -2375,7 +2376,7 @@
23752376 }
23762377 zds->stage = zdss_read;
23772378 }
2378
- /* pass-through */
2379
+ /* fall through */
23792380
23802381 case zdss_read: {
23812382 size_t const neededInSize = ZSTD_nextSrcSizeToDecompress(zds->dctx);
....@@ -2404,6 +2405,7 @@
24042405 zds->stage = zdss_load;
24052406 /* pass-through */
24062407 }
2408
+ /* fall through */
24072409
24082410 case zdss_load: {
24092411 size_t const neededInSize = ZSTD_nextSrcSizeToDecompress(zds->dctx);
....@@ -2436,6 +2438,7 @@
24362438 /* pass-through */
24372439 }
24382440 }
2441
+ /* fall through */
24392442
24402443 case zdss_flush: {
24412444 size_t const toFlushSize = zds->outEnd - zds->outStart;