hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/lib/xz/xz_dec_lzma2.c
....@@ -2,7 +2,7 @@
22 * LZMA2 decoder
33 *
44 * Authors: Lasse Collin <lasse.collin@tukaani.org>
5
- * Igor Pavlov <http://7-zip.org/>
5
+ * Igor Pavlov <https://7-zip.org/>
66 *
77 * This file has been put into the public domain.
88 * You can do whatever you want with this file.
....@@ -1060,7 +1060,7 @@
10601060
10611061 s->lzma2.sequence = SEQ_LZMA_PREPARE;
10621062
1063
- /* Fall through */
1063
+ /* fall through */
10641064
10651065 case SEQ_LZMA_PREPARE:
10661066 if (s->lzma2.compressed < RC_INIT_BYTES)
....@@ -1072,7 +1072,7 @@
10721072 s->lzma2.compressed -= RC_INIT_BYTES;
10731073 s->lzma2.sequence = SEQ_LZMA_RUN;
10741074
1075
- /* Fall through */
1075
+ /* fall through */
10761076
10771077 case SEQ_LZMA_RUN:
10781078 /*
....@@ -1163,6 +1163,7 @@
11631163
11641164 if (DEC_IS_DYNALLOC(s->dict.mode)) {
11651165 if (s->dict.allocated < s->dict.size) {
1166
+ s->dict.allocated = s->dict.size;
11661167 vfree(s->dict.buf);
11671168 s->dict.buf = vmalloc(s->dict.size);
11681169 if (s->dict.buf == NULL) {