liblzma: lzma_str_to_filters: Set *error_pos on all errors
commit70d12dd069bb9bb0d6bb1c8fafc4e6f77780263d
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 22 Apr 2024 18:54:39 +0000 (22 21:54 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 22 Apr 2024 19:03:04 +0000 (22 22:03 +0300)
tree8002b8d5db87056aeac653dc0e7f12a8a7d570bc
parented8e552395701fbf046027cebc8be4a6755b263f
liblzma: lzma_str_to_filters: Set *error_pos on all errors

The API docs clearly say that if error_pos isn't NULL then *error
is always set on any error. However, it wasn't touched if str == NULL
or filters == NULL or unsupported flags were specified.

Fixes: cedeeca2ea6ada5b0411b2ae10d7a859e837f203
src/liblzma/common/string_conversion.c