[Rpm-maint] [rpm-software-management/rpm] Better sanity check for header entry counts (#1585)
Panu Matilainen
notifications at github.com
Fri Mar 19 06:58:13 UTC 2021
The count can never be larger than header data size, which can never be
larger than 256MB. Most datatypes have further restrictions of course, this
is merely an outer perimeter check to catch impossibly large values that
could otherwise overflow all manner of trivial calculations.
Addresses the point I missed in PR #1493 but with a much tighter limit.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/1585
-- Commit Summary --
* Better sanity check for header entry counts
-- File Changes --
M lib/header.c (7)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/1585.patch
https://github.com/rpm-software-management/rpm/pull/1585.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/1585
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210318/19406dfb/attachment.html>
More information about the Rpm-maint
mailing list