[Rpm-maint] [rpm-software-management/rpm] Harden against crafted inputs (#1471)

Demi Marie Obenour notifications at github.com
Sun Jan 10 04:32:43 UTC 2021


@DemiMarie commented on this pull request.



> @@ -169,8 +169,8 @@ rpmRC rpmpkgRead(struct rpmvs_s *vs, FD_t fd,
 	goto exit;
     }
 
-    /* Read the signature header. Might not be in a contiguous region. */
-    if (hdrblobRead(fd, 1, 0, RPMTAG_HEADERSIGNATURES, sigblob, &msg))
+    /* Read the signature header. Must be in a contiguous region. */
+    if (hdrblobRead(fd, 1, 1, RPMTAG_HEADERSIGNATURES, sigblob, &msg))

(For the record: I am thinking *purely* from a security perspective here.  Of course, security is not the only goal of the RPM project.)

-- 
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/1471#discussion_r554509307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210109/e833b174/attachment-0001.html>


More information about the Rpm-maint mailing list