Linux/linux 8e20ba2lib/xz xz_dec_lzma2.c

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 at tukaani.org>
Reported-by: Yu Sun <yusun2 at cisco.com>
Acked-by: Daniel Walker <danielwa at cisco.com>
Cc: "Yixia Si (yisi)" <yisi at cisco.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+1-0lib/xz/xz_dec_lzma2.c
+1-01 files

UnifiedSplitRaw