[Rpm-maint] [rpm-software-management/rpm] Fix double-free on ternary operator parsing error (#847)

Panu Matilainen notifications at github.com
Thu Sep 19 10:00:39 UTC 2019


v1 gets double-freed when there's an error parsing the result side
of the ternary operator. Add testcases to go, one that catches the
actual error and another which serves to demonstrate that the false
branch doesn't get parsed at all, errors or no.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Fix double-free on ternary operator parsing error

-- File Changes --

    M rpmio/expression.c (2)
    M tests/rpmmacro.at (3)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/847.patch
https://github.com/rpm-software-management/rpm/pull/847.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/847
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190919/70c0301c/attachment.html>


More information about the Rpm-maint mailing list