[Rpm-maint] [rpm-software-management/rpm] Fix an ancient memleak on %caps() parsing, add tests (PR #3031)

Panu Matilainen notifications at github.com
Thu Apr 11 09:13:57 UTC 2024


This leak has been there ever since rpm 4.7.0, so pretty close to 15 years. ASAN would've caught it, if it had it been tested. Oops. Of course, in the fakechroot era we couldn't have tested installation but we could've at least tested the parsing side.

Add tests for parsing, query and install functionality, and fix the leak that is now very visible.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Fix an ancient memleak on %caps() parsing, add tests

-- File Changes --

    M build/files.c (1)
    M tests/rpmbuild.at (30)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3031
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3031 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240411/d1dd9f4f/attachment.html>


More information about the Rpm-maint mailing list