[Rpm-maint] [rpm-software-management/rpm] Sending multiple identical options to a macro will leak them to the next macro accepting the same option (Issue #3056)

Panu Matilainen notifications at github.com
Wed Apr 24 05:50:57 UTC 2024


It's a bug alright. I actually just stumbled on that code a couple of days ago thinking this doesn't look right. It isn't.

It's not just multiple identical options, it's any local macro multiply defined, issue being that freeArgs() only ever pops once. Easily reproduced with eg

> rpm --define "aa 0" --define "my() %{define:aa 1} %{define:aa 2}" --eval "%my" --eval "%aa"
> warning: Macro %aa defined but not used within scope
> 
>1

It should "obviously" output 0.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3056#issuecomment-2074090243
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3056/2074090243 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240423/64552a24/attachment.html>


More information about the Rpm-maint mailing list