tukaani-project / xz

XZ Utils
https://tukaani.org/xz/
Other
532 stars 95 forks source link

liblzma: Change use of LZMA_STR_NO_VALIDATION in lzma_str_to_filters(). #26

Closed JiaT75 closed 1 year ago

JiaT75 commented 1 year ago

The LZMA_STR_NO_VALIDATION flag name and description is ambiguous to how it handles individual filters that cannot be used in .xz format (only lzma1 for now). Now LZMA_STR_NO_VALIDATION is a super set of the LZMA_STR_ALL_FILTERS flag, so they don't need to be used together.

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces: - [X] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming, typo fix) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [X] Documentation content changes - [ ] Other (please describe):

Related Issue URL: https://github.com/tukaani-project/xz/issues/24

What is the new behavior?

Does this introduce a breaking change?

Other information

This is another option instead of https://github.com/tukaani-project/xz/pull/25. This is a behavior change for an API function, so it would have to be announced properly in the next release.