public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Lubos Kardos <lkardos@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - Fix segmentation fault
Date: Mon, 23 Nov 2026 09:29:22 GMT	[thread overview]
Message-ID: <179542616253.1.1355402122073160113.rpms-rpm-e972e4365d9b@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : e972e4365d9b71680b498f1bac7d0ed6c5f898d8
            Author : Lubos Kardos <lkardos@redhat.com>
            Date   : 2015-03-30T09:44:42+02:00
            Stats  : +30/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/e972e4365d9b71680b498f1bac7d0ed6c5f898d8?branch=pmatilai-v6

            Log:
            - Fix segmentation fault
- resolves: #1206750

---
diff --git a/rpm-4.12.0-exclude-doc.patch b/rpm-4.12.0-exclude-doc.patch
index b28a4a6..4b31e62 100644
--- a/rpm-4.12.0-exclude-doc.patch
+++ b/rpm-4.12.0-exclude-doc.patch
@@ -43,3 +43,29 @@ index 0f39732..af1deb8 100644
 -- 
 1.9.3
 
+From ee72c41d8b9994e4b1086c116927e8541a6ba592 Mon Sep 17 00:00:00 2001
+From: Lubos Kardos <lkardos@redhat.com>
+Date: Mon, 30 Mar 2015 09:31:15 +0200
+Subject: [PATCH] Fix off-by-one error (rhbz:#1206750)
+
+- Caused by commit b598ce37d76bde5b8a6029008531aba6d2fbf594
+---
+ lib/transaction.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/transaction.c b/lib/transaction.c
+index af1deb8..f9ffd10 100644
+--- a/lib/transaction.c
++++ b/lib/transaction.c
+@@ -852,7 +852,7 @@ static void skipInstallFiles(const rpmts ts, rpmfiles files, rpmfs fs)
+ 
+     /* Skip (now empty) directories that had skipped files. */
+     /* Iterate over dirs in reversed order to solve subdirs at first */
+-    for (j = dc; j >= 0; j--) {
++    for (j = dc - 1; j >= 0; j--) {
+ 	const char * dn, * bn;
+ 	size_t dnlen, bnlen;
+ 
+-- 
+1.9.3
+

diff --git a/rpm.spec b/rpm.spec
index 5882087..0c04c0f 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -27,7 +27,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}11%{?dist}
+Release: %{?snapver:0.%{snapver}.}12%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.12.x/%{name}-%{srcver}.tar.bz2
@@ -547,6 +547,9 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Mon Mar 30 2015 Lubos Kardos <lkardos@redhat.com> 4.12.0-12
+- Fix segmentation fault (#1206750)
+
 * Fri Mar 27 2015 Lubos Kardos <lkardos@redhat.com> 4.12.0-11
 - Pass _find_debuginfo_opts -g to eu-strip for executables (#1186563)
 - add_minidebug is not ran when strip_g is set (#1186563)

                 reply	other threads:[~2026-11-23  9:29 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=179542616253.1.1355402122073160113.rpms-rpm-e972e4365d9b@fedoraproject.org \
    --to=lkardos@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