diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-11-17 20:19:26 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-11-17 23:16:55 +0800 |
commit | 2a732aba22da1b0d4a1241cb32280ed010ba03ce (patch) | |
tree | 88e6daef9c1e8c9e5b913e0f3919625988056c5e /tests/files/bad-too_small_size-without_eopm-1.lzma | |
parent | Tests: Fix typo in a comment. (diff) | |
download | xz-2a732aba22da1b0d4a1241cb32280ed010ba03ce.tar.xz |
xz: Fix a bug with --files and --files0 in raw mode without a suffix.
The following command caused a segmentation fault:
xz -Fraw --lzma1 --files=foo
when foo was a valid file. The usage of --files or --files0 was not
being checked when compressing or decompressing in raw mode without a
suffix. The suffix checking code was meant to validate that all files
to be processed are "-" (if not writing to standard out), meaning the
data is only coming from standard in. In this case, there were no file
names to check since --files and --files0 store their file name in a
different place.
Later code assumed the suffix was set and caused a segmentation fault.
Now, the above command results in an error.
Diffstat (limited to 'tests/files/bad-too_small_size-without_eopm-1.lzma')
0 files changed, 0 insertions, 0 deletions