$ 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/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to