[Rpm-maint] [rpm-software-management/rpm] Fix a segfault on a non-stringable argument to macro call from Lua (PR #2438)

Panu Matilainen notifications at github.com
Fri Mar 17 11:07:11 UTC 2023


When natively calling a parametric macro from Lua, with the arguments inside a table, we can't assume lua_tostring() always succeeds as it can fail eg on a table. Report the error instead of crashing in argvAdd(), and add a test as well.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Fix a segfault on a non-stringable argument to macro call from Lua

-- File Changes --

    M rpmio/rpmlua.c (9)
    M tests/rpmmacro.at (9)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2438.patch
https://github.com/rpm-software-management/rpm/pull/2438.diff

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

Message ID: <rpm-software-management/rpm/pull/2438 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230317/c893a345/attachment.html>


More information about the Rpm-maint mailing list