public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jindrich Novy <jnovy@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - fix crash in package manifest check (#688091)
Date: Mon, 23 Nov 2026 09:27:05 GMT	[thread overview]
Message-ID: <179542602523.1.7142693458265336360.rpms-rpm-daa59d2b0242@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : daa59d2b024219efadd0d74827fcc5a4037aa58b
Author : Jindrich Novy <jnovy@redhat.com>
Date   : 2011-03-16T15:25:04+01:00
Stats  : +18/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/daa59d2b024219efadd0d74827fcc5a4037aa58b?branch=pmatilai-v6

Log:
- fix crash in package manifest check (#688091)

---
diff --git a/rpm-4.9.0-manifest-fix.patch b/rpm-4.9.0-manifest-fix.patch
new file mode 100644
index 0000000..96d71db
--- /dev/null
+++ b/rpm-4.9.0-manifest-fix.patch
@@ -0,0 +1,11 @@
+diff -up rpm-4.9.0/lib/manifest.c.manifest-fix rpm-4.9.0/lib/manifest.c
+--- rpm-4.9.0/lib/manifest.c.manifest-fix	2010-12-03 13:11:57.000000000 +0100
++++ rpm-4.9.0/lib/manifest.c	2011-03-16 14:54:49.502557299 +0100
+@@ -96,6 +96,7 @@ rpmRC rpmReadPackageManifest(FD_t fd, in
+ 
+ 	/* Sanity checks: skip obviously binary lines and dash (for stdin) */
+ 	if (*s < 32 || rstreq(s, "-")) {
++	    s = NULL;
+ 	    rpmrc = RPMRC_NOTFOUND;
+ 	    goto exit;
+ 	}

diff --git a/rpm.spec b/rpm.spec
index ff3e72e..9b80d92 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}2%{?dist}
+Release: %{?snapver:0.%{snapver}.}3%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.8.x/%{name}-%{srcver}.tar.bz2
@@ -38,6 +38,8 @@ Patch2: rpm-4.8.90-fedora-specspo.patch
 Patch3: rpm-4.8.0-no-man-dirs.patch
 # gnupg2 comes installed by default, avoid need to drag in gnupg too
 Patch4: rpm-4.8.1-use-gpg2.patch
+# Do not try to free and unallocated variable (#688091)
+Patch5: rpm-4.9.0-manifest-fix.patch
 
 # Patches already in upstream
 
@@ -204,6 +206,7 @@ packages on a system.
 %patch2 -p1 -b .fedora-specspo
 %patch3 -p1 -b .no-man-dirs
 %patch4 -p1 -b .use-gpg2
+%patch5 -p1 -b .manifest-fix
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -417,6 +420,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Wed Mar 16 2011 Jindirch Novy <jnovy@redhat.com> - 4.9.0-3
+- fix crash in package manifest check (#688091)
+
 * Fri Mar 04 2011 Panu Matilainen <pmatilai@redhat.com> - 4.9.0-2
 - fix duplicate rpmsign binary in rpm main package dragging in build-libs
 

             reply	other threads:[~2026-11-23  9:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  9:27 Jindrich Novy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-11-23  9:27 [rpms/rpm] pmatilai-v6: - fix crash in package manifest check (#688091) Jindrich Novy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542602523.1.7142693458265336360.rpms-rpm-daa59d2b0242@fedoraproject.org \
    --to=jnovy@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox