diff options
author | Grzegorz Antoniak <ga@anadoxin.org> | 2019-06-24 07:07:02 +0200 |
---|---|---|
committer | Grzegorz Antoniak <ga@anadoxin.org> | 2019-06-24 07:16:53 +0200 |
commit | 2331456dc1f83e6b20e656e69fa01b6e30302865 (patch) | |
tree | 1a871c4f29879c87553ca4b51a362d7d9dfa9c11 /Makefile.am | |
parent | a163558c388bb2ccedef683e8031c11193e6875c (diff) | |
download | libarchive-2331456dc1f83e6b20e656e69fa01b6e30302865.tar.gz |
RAR5 reader: fix ARM filter going beyond window buffer boundary
RAR5 uses filters in order to mutate data just before compression, to
achieve a better compression ratio. After decompression, this mutation
needs to be reversed by processing various filters that the compressor
uses.
One of such filters is an ARM executable file filter, which changes some
bytes in the input stream if the stream is recognized as an executable
file with ARM native code.
This commit fixes the situation when the decompressor using an ARM filter
was referencing a byte outside current window buffer. Such action is
invalid and can produce segmentation faults.
This commit also adds a test using OSSFuzz sample #15431.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 76703e4f..20eb5312 100644 --- a/Makefile.am +++ b/Makefile.am @@ -865,6 +865,7 @@ libarchive_test_EXTRA_DIST=\ libarchive/test/test_read_format_rar5_symlink.rar.uu \ libarchive/test/test_read_format_rar5_truncated_huff.rar.uu \ libarchive/test/test_read_format_rar5_win32.rar.uu \ + libarchive/test/test_read_format_rar5_arm_filter_on_window_boundary.rar.uu \ libarchive/test/test_read_format_raw.bufr.uu \ libarchive/test/test_read_format_raw.data.gz.uu \ libarchive/test/test_read_format_raw.data.Z.uu \ |