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

2020-12-29 Thread Demi Marie Obenour
@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, )) +/* Read

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

2020-12-29 Thread ニール・ゴンパ
@DemiMarie Can you split up these changes into separate commits? That would make it easier to do partial merges as each change is approved. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

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

2020-12-29 Thread ニール・ゴンパ
@Conan-Kudo requested changes 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, )) +

Re: [Rpm-maint] [rpm-software-management/rpm] RPM with Copy on Write (#1470)

2020-12-29 Thread Demi Marie Obenour
How will package signatures be verified? More specifically, will `rpm2extents` verify the signed digest of files before decompressing them? Otherwise, this seems like a potential security risk, in case there is a bug in the decompression library. -- You are receiving this because you are

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

2020-12-29 Thread Demi Marie Obenour
This makes vulnerabilities less likely by: - Preventing an out-of-bounds read on 32-bit systems. - Adding `-fno-strict-overflow`, `-fwrapv`, and `-fwrapv-pointer` - Avoid some undefined pointer arithmetic - Requiring signature headers to be contiguous. You can view, comment on, or merge this pull

[Rpm-maint] [rpm-software-management/rpm] RFE: `rpm --macrofile` for using arbitrary macro file directories (#1469)

2020-12-29 Thread ニール・ゴンパ
Some time back, @daxelrod-datto suggested in https://github.com/debbuild/debbuild/issues/114 that debbuild implement a `--macrofile` option similar to the `--rcfile` option for overriding the macro search path for that invocation. It was noted there that this feature does not exist in RPM, and