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

Michael Schroeder notifications at github.com
Thu Sep 19 12:37:19 UTC 2019


The duplicate error is because rpmExprStr/rpmExprBool ignore the return value of the
`rdToken()` call. That should also be fixed.

It's not really about TOK_TERNARY_ALT, you'll get the same error with `%{expr:4 * +}`

If the different error message bothers you, just delete the TOK_EOF case so that you'll
also get a syntax error if the expression ends unexpectedly.

-- 
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#issuecomment-533110819
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190919/18e17da8/attachment.html>


More information about the Rpm-maint mailing list