From: Michael Brown Date: Thu, 26 Feb 2015 09:46:59 +0000 (+0000) Subject: [zbin] Perform extra normalisation after completing decompression X-Git-Tag: v1.20.1~954 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cdf68a2190a050a0b60d4ad6f51ec88c1b1b296;p=thirdparty%2Fipxe.git [zbin] Perform extra normalisation after completing decompression LZMA performs an extra normalisation after decompression is complete, which does not affect the output but may consume an extra byte from the input (and so may affect which byte is identified as being the start of the next block). Reported-by: Robin Smidsrød Tested-by: Robin Smidsrød Signed-off-by: Michael Brown --- diff --git a/src/arch/i386/prefix/unlzma.S b/src/arch/i386/prefix/unlzma.S index f6c742865..b0588fdac 100644 --- a/src/arch/i386/prefix/unlzma.S +++ b/src/arch/i386/prefix/unlzma.S @@ -885,6 +885,7 @@ decompress: 1: /* Decompress until we reach end of buffer */ call lzma_decode jnc 1b + call rc_normalise print_character '\n' /* Undo BCJ filter */ pushl %esi