xz-analysis-mirror/src
Lasse Collin f94da15120 liblzma: lzma_filters_copy: Keep dest[] unmodified if an error occurs.
lzma_stream_encoder() and lzma_stream_encoder_mt() always assumed
this. Before this patch, failing lzma_filters_copy() could result
in free(invalid_pointer) or invalid memory reads in stream_encoder.c
or stream_encoder_mt.c.

To trigger this, allocating memory for a filter options structure
has to fail. These are tiny allocations so in practice they very
rarely fail.

Certain badness in the filter chain array could also make
lzma_filters_copy() fail but both stream_encoder.c and
stream_encoder_mt.c validate the filter chain before
trying to copy it, so the crash cannot occur this way.
2022-09-17 00:22:11 +03:00
..
common Windows: Fix building of resource files when config.h isn't used. 2022-07-12 18:09:21 +03:00
liblzma liblzma: lzma_filters_copy: Keep dest[] unmodified if an error occurs. 2022-09-17 00:22:11 +03:00
lzmainfo Build: Prepare to support Automake's subdir-objects. 2014-10-29 21:15:35 +02:00
scripts xzgrep man page: Document exit statuses. 2022-07-24 11:38:19 +03:00
xz xz: Make --keep accept symlinks, hardlinks, and setuid/setgid/sticky. 2022-07-24 13:29:42 +03:00
xzdec Build: Add support for translated man pages using po4a. 2020-03-11 12:05:57 +02:00
Makefile.am Build: Prepare to support Automake's subdir-objects. 2014-10-29 21:15:35 +02:00