Closed
Description
Example:
>>> import lzma
>>> lzma._decode_filter_properties(lzma.FILTER_X86, b"")
Segmentation fault (core dumped)
In _lzma__decode_filter_properties_impl
call to lzma_properties_decode
returns LZMA_OK
and leaves filter.options
intact (that is uninitialized) if filter.id
is id of a BCJ filter (FILTER_X86, FILTER_POWERPC, FILTER_IA64, FILTER_ARM, FILTER_ARMTHUMB, FILTER_SPARC) and encoded_props->len
is equal to zero.
Lines 1487 to 1495 in 01cc9c1
Then, in build_filter_spec
, access to f->options->start_offset
leads to segmentation fault:
Lines 489 to 499 in 01cc9c1
The PR is on the way.
3.9-3.12 are affected for sure.
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Done