public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - fix segfault in symlink fingerprinting (#505777)
Date: Mon, 23 Nov 2026 09:25:59 GMT [thread overview]
Message-ID: <179542595961.1.4728191691220737387.rpms-rpm-154e7d941082@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 154e7d941082943efbcd06a4317c8eca63c75dc7
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date : 2009-06-18T10:21:41+00:00
Stats : +29/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/154e7d941082943efbcd06a4317c8eca63c75dc7?branch=pmatilai-v6
Log:
- fix segfault in symlink fingerprinting (#505777)
---
diff --git a/rpm-4.7.0-fp-symlink.patch b/rpm-4.7.0-fp-symlink.patch
new file mode 100644
index 0000000..071f4ec
--- /dev/null
+++ b/rpm-4.7.0-fp-symlink.patch
@@ -0,0 +1,26 @@
+commit 1b9e6d7f48a68fd677c70d04c9a6bb4274cf7b9f
+Author: Florian Festi <ffesti@redhat.com>
+Date: Tue Jun 16 17:37:40 2009 +0200
+
+ Fix Segfault for to be installed symlinks pointing to existing locations
+ fixes rhbz#505777
+
+diff --git a/lib/fprint.c b/lib/fprint.c
+index d32eec1..e57ba20 100644
+--- a/lib/fprint.c
++++ b/lib/fprint.c
+@@ -311,10 +311,10 @@ void fpLookupSubdir(rpmFpHash symlinks, rpmFpHash fphash, fingerPrintCache fpc,
+ /* setup current_fp for the new path */
+ found = 1;
+ current_fp = *fp;
+- if (!fp->subDir) {
+- lensubDir = 0;
+- currentsubdir = endsubdir = NULL;
+- break;
++ if (fp->subDir == NULL) {
++ /* directory exists - no need to look for symlinks */
++ rpmFpHashAddEntry(fphash, fp, ffi);
++ return;
+ }
+ lensubDir = strlen(fp->subDir);
+ currentsubdir = xstrdup(fp->subDir);
diff --git a/rpm.spec b/rpm.spec
index b6d9dde..55fd1c9 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -45,6 +45,7 @@ Patch202: rpm-4.7.0-python-altnevr.patch
Patch203: rpm-4.7.0-hardlink-sizes.patch
Patch204: rpm-4.7.0-dwarf3.patch
Patch205: rpm-4.7.0-osgideps.patch
+Patch206: rpm-4.7.0-fp-symlink.patch
# These are not yet upstream
Patch300: rpm-4.7.0-extra-provides.patch
@@ -203,6 +204,7 @@ packages on a system.
%patch203 -p1 -b .hardlink-sizes
%patch204 -p1 -b .dwarf3
%patch205 -p1 -b .osgideps
+%patch206 -p1 -b .fp-symlink
%patch300 -p1 -b .extra-prov
%patch301 -p1 -b .niagara
@@ -419,6 +421,7 @@ exit 0
%changelog
* Thu Jun 18 2009 Panu Matilainen <pmatilai@redhat.com> - 4.7.0-8
- updated OSGi dependency extractor (#506471)
+- fix segfault in symlink fingerprinting (#505777)
* Tue Jun 16 2009 Panu Matilainen <pmatilai@redhat.com> - 4.7.0-7
- add dwarf-3 support to debugedit (#505774)
reply other threads:[~2026-11-23 9:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=179542595961.1.4728191691220737387.rpms-rpm-154e7d941082@fedoraproject.org \
--to=pmatilai@fedoraproject.org \
--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