1 #-----------------------------------------------------------------------------
2 # Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # See LICENSE.txt for the text of the license.
15 #-----------------------------------------------------------------------------
19 wget https
://github.com
/lz
4/lz
4/archive
/v
$version.
zip
20 unzip -o -j v
$version "lz4-$version/LICENSE" "lz4-$version/lib/lz4.h" "lz4-$version/lib/lz4.c" "lz4-$version/lib/lz4hc.h" "lz4-$version/lib/lz4hc.c" -d lz4
23 diff -Naur lz4/lz4.c lz4/lz4.c
26 @@ -1270,6 +1270,7 @@ int LZ4_compress_default(const char* src, char* dst, int srcSize, int maxOutputS
30 +int LZ4_compress_fast_force(const char* src, char* dst, int srcSize, int dstCapacity, int acceleration);
31 /* hidden debug function */
32 /* strangely enough, gcc generates faster code when this function is uncommented, even if unused */
33 int LZ4_compress_fast_force(const char* src, char* dst, int srcSize, int dstCapacity, int acceleration)
34 @@ -1644,13 +1645,16 @@ read_variable_length(const BYTE**ip, const BYTE* lencheck, int loop_check, int i
38 +int LZ4_decompress_generic(const char* const src, char* const dst, int srcSize, int outputSize, endCondition_directive endOnInput, earlyEnd_directive partialDecoding,
39 + dict_directive dict, const BYTE* const lowPrefix, const BYTE* const dictStart, const size_t dictSize );
41 /*! LZ4_decompress_generic() :
42 * This generic decompression function covers all use cases.
43 * It shall be instantiated several times, using different sets of directives.
44 * Note that it is important for performance that this function really get inlined,
45 * in order to remove useless branches during compilation optimization.
49 LZ4_decompress_generic(
50 const char* const src,