summaryrefslogtreecommitdiff
path: root/src/common/compress_lzma.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-04-27 20:07:08 +0200
committerAlexander Færøy <ahf@torproject.org>2017-04-27 20:07:08 +0200
commite5122b91a951d44702b11a70862ec99e851a2578 (patch)
treea55dc2bfac9866e5c990adf369dc7c6ffa4851d9 /src/common/compress_lzma.c
parent480dab4f2f8de6661c71e71f37d4a824ecf38e3c (diff)
downloadtor-e5122b91a951d44702b11a70862ec99e851a2578.tar.gz
tor-e5122b91a951d44702b11a70862ec99e851a2578.zip
Only compare the first 3 bytes when trying to detect LZMA compression.
This patch changes the logic in `detect_compression_method()` to only use the 3 first bytes when checking if a given input is LZMA encoded.
Diffstat (limited to 'src/common/compress_lzma.c')
0 files changed, 0 insertions, 0 deletions