[Rpm-maint] [rpm-software-management/rpm] Reset recursion depth for error message (PR #3209)
Florian Festi
notifications at github.com
Thu Jul 18 11:10:43 UTC 2024
$ rpm --define 'aaa %[%aaa]' --eval '%aaa'
let to a core dump due to a stack overflow. This was cause by the generation of the error message failing due to being too deep in the recursion of the macro expansion - creating more error messages.
Resetting the depth counter allows rendering the error message. As we are failing and breaking off the parse run this is fine to do.
Thanks to Miro Hrončok for reporting
Resolves: #3197
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/3209
-- Commit Summary --
* Reset recursion depth for error message
-- File Changes --
M rpmio/macro.c (4)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/3209.patch
https://github.com/rpm-software-management/rpm/pull/3209.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3209
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3209 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240718/b5f3acb3/attachment.html>
More information about the Rpm-maint
mailing list