[Rpm-maint] [rpm-software-management/rpm] Fix regression when parsing macro define with an empty body (PR #4196)

Panu Matilainen notifications at github.com
Wed Apr 29 05:57:27 UTC 2026


Commit ab1991084fc72d4036a8818e35c8966bcf7b7c86 introduced a regression where we can attempt to access an empty string. Add tests to cover the case.

Fixes: #4195
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Fix regression when parsing macro define with an empty body

-- File Changes --

    M rpmio/macro.cc (2)
    M tests/rpmmacro.at (16)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/4196.patchhttps://github.com/rpm-software-management/rpm/pull/4196.diff
-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4196
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4196 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260428/eaaaab4d/attachment.htm>


More information about the Rpm-maint mailing list