[Rpm-maint] [rpm-software-management/rpm] rpmio: Fix lzopen_internal mode parsing when 'Tn' is used (#1478)

Vitalio notifications at github.com
Wed Jan 6 20:50:10 UTC 2021


When there is number after "T" (suggested number of threads or "0" for
getncpus), lzopen_internal() mode parser would skip one byte, and when
it's at the end of the string it would then parse undesired garbage from
the memory, making intermittent compression failures.

Fixes: 7740d1098 ("Add support for multithreaded xz compression")
Signed-off-by: Vitaly Chikunov <vt at altlinux.org>

Cc: @ldv-alt
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1478

-- Commit Summary --

  * rpmio: Fix lzopen_internal mode parsing when 'Tn' is used

-- File Changes --

    M rpmio/rpmio.c (1)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1478.patch
https://github.com/rpm-software-management/rpm/pull/1478.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1478
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210106/cf75217f/attachment.html>


More information about the Rpm-maint mailing list