OpenCloudOS-Kernel/lib/xz
Lasse Collin 8e20ba2e53 lib/xz: fix XZ_DYNALLOC to avoid useless memory reallocations
s->dict.allocated was initialized to 0 but never set after a successful
allocation, thus the code always thought that the dictionary buffer has
to be reallocated.

Link: http://lkml.kernel.org/r/20191104185107.3b6330df@tukaani.org
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Reported-by: Yu Sun <yusun2@cisco.com>
Acked-by: Daniel Walker <danielwa@cisco.com>
Cc: "Yixia Si (yisi)" <yisi@cisco.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-11-15 18:34:00 -08:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
xz_crc32.c lib/xz: Put CRC32_POLY_LE in xz_private.h 2018-10-02 08:44:59 +10:00
xz_dec_bcj.c XZ: Fix incorrect XZ_BUF_ERROR 2011-09-21 13:39:59 -07:00
xz_dec_lzma2.c lib/xz: fix XZ_DYNALLOC to avoid useless memory reallocations 2019-11-15 18:34:00 -08:00
xz_dec_stream.c lib/xz: Add fall-through comments to a switch statement 2017-10-12 15:10:12 +02:00
xz_dec_syms.c decompressors: add XZ decompressor module 2011-01-13 08:03:24 -08:00
xz_dec_test.c decompressors: add XZ decompressor module 2011-01-13 08:03:24 -08:00
xz_lzma2.h decompressors: add XZ decompressor module 2011-01-13 08:03:24 -08:00
xz_private.h lib/xz: Put CRC32_POLY_LE in xz_private.h 2018-10-02 08:44:59 +10:00
xz_stream.h decompressors: add XZ decompressor module 2011-01-13 08:03:24 -08:00