Ticket #1798: Not enough magic read before checking for lzma files
commitc9978ff155b6356274c518dab3c41ac31cbd76b7
authorSlava Zanko <slavazanko@gmail.com>
Mon, 9 Nov 2009 11:42:27 +0000 (9 13:42 +0200)
committerSlava Zanko <slavazanko@gmail.com>
Wed, 2 Dec 2009 14:03:07 +0000 (2 16:03 +0200)
treed5db65ccb7a69ce863f508face683a1b1cc53bc2
parent9736afb521e1f261fb1e3b3c366069cf487533f4
Ticket #1798: Not enough magic read before checking for lzma files

In the function get_compression_type() in src/util.c, only 5 bytes of the
file are read into the magic array, but the test for lzma files checks the
first 6 bytes in the magic array.

Fix issue:
now reads 6 bytes for correct recognize LZMA-files.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
src/util.c