[Rpm-maint] [rpm-software-management/rpm] Fix sigheader generation for big archives (#379)

Michael Schroeder notifications at github.com
Fri Jan 5 12:40:39 UTC 2018

The old code just subtracted 8 bytes from the reserved space, but
that does not take tag alignment into account and led to the
signature header overwriting the package header.

We now use headerSizeof to calculate the real size difference.

Note that this only works reliable if the reserved space tag comes
last in the signature header!
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * Fix sigheader generation for big archives

-- File Changes --

    M lib/signature.c (43)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180105/2dbdfe84/attachment.html>

More information about the Rpm-maint mailing list