[Rpm-maint] [rpm-software-management/rpm] rpmfiArchiveRead() use signed return value to handle -1 on error (#1188)

Panu Matilainen notifications at github.com
Mon Apr 20 13:37:46 UTC 2020


That'd make the non-error case buggy as it takes an unsigned size_t as the size argument, but then returns a signed version which can't express the same range.

I suspect the simplest fix is to just document the error return as (size_t)-1, similar to time() etc.

-- 
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/1188#issuecomment-616558747
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200420/e78ff27c/attachment.html>


More information about the Rpm-maint mailing list