[Rpm-maint] [rpm-software-management/rpm] Fix integer overflow in memory calculations on 32bit systems (PR #2770)
Panu Matilainen
notifications at github.com
Mon Nov 27 13:55:01 UTC 2023
Actually this "fix" was just as broken as it was before, because:
`mem = (uint64_t)(pages * pagesize)` is just as bad as not casting it at all because it casts the *result* of the multiplication, whereas we want to force (one of the) members to 64bit :facepalm:
I love you C, but there are times...
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2770#issuecomment-1827878669
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2770/c1827878669 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20231127/356d9825/attachment.html>
More information about the Rpm-maint
mailing list