[Rpm-maint] [rpm-software-management/rpm] Check that len is in range before using it (#1497)

Panu Matilainen notifications at github.com
Wed Feb 17 11:42:30 UTC 2021


An alternative approach could be using a 64bit type for `end` so it will simply never overflow, but this is nice in that it eliminates the need for separate len test. Scrap the comment though  - that deduction belongs to the commit message, not code.


-- 
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/1497#issuecomment-780500135
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210217/4a3f95cc/attachment.html>


More information about the Rpm-maint mailing list