[Rpm-maint] [rpm-software-management/rpm] Fix logic error in grabArgs() (#1411)

Michael Schroeder notifications at github.com
Fri Oct 23 12:08:58 UTC 2020


If there was a '\' at the end of the buffer, the code would
return a pointer after the trailing \0 leading to unallocated
memory access and weird results in some cases.

See commit 817959609b95afe34ce0f7f6c3dc5d7d0d9a8470.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Fix logic error in grabArgs()

-- File Changes --

    M rpmio/macro.c (2)
    M tests/rpmmacro.at (5)

-- Patch Links --

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1411
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201023/22aecec4/attachment.html>


More information about the Rpm-maint mailing list