public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - fix double-free on %caps in spec (#877512)
Date: Mon, 23 Nov 2026 09:28:00 GMT	[thread overview]
Message-ID: <179542608033.1.3680464249537907223.rpms-rpm-2d4d8e8284de@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 2d4d8e8284de0738dcd10a155924fa622e560a8c
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2012-11-17T19:06:29+02:00
Stats  : +28/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/2d4d8e8284de0738dcd10a155924fa622e560a8c?branch=pmatilai-v6

Log:
- fix double-free on %caps in spec (#877512)

---
diff --git a/rpm-4.10.90-caps-free.patch b/rpm-4.10.90-caps-free.patch
new file mode 100644
index 0000000..79a7937
--- /dev/null
+++ b/rpm-4.10.90-caps-free.patch
@@ -0,0 +1,21 @@
+commit 34df9d81d15b596ea6f3f3f2e15bd0ec55323a19
+Author: Panu Matilainen <pmatilai@redhat.com>
+Date:   Sat Nov 17 17:57:59 2012 +0200
+
+    Fix double-free on %caps in spec (RhBug:877512)
+    
+    - Fixes regression caused by dumb refactoring mistake in commit
+      807ba93a6cf168410e3801347898949f356fcd6c
+
+diff --git a/build/files.c b/build/files.c
+index d299cb9..10d7fff 100644
+--- a/build/files.c
++++ b/build/files.c
+@@ -216,7 +216,6 @@ static void FileEntryFree(FileEntry entry)
+ {
+     freeAttrRec(&(entry->ar));
+     argvFree(entry->langs);
+-    free(entry->caps);
+     memset(entry, 0, sizeof(*entry));
+ }
+ 

diff --git a/rpm.spec b/rpm.spec
index 24a06ea..e97d0b2 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -22,7 +22,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}1%{?dist}
+Release: %{?snapver:0.%{snapver}.}2%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -46,6 +46,7 @@ Patch5: rpm-4.9.90-armhfp.patch
 Patch6: rpm-4.9.0-armhfp-logic.patch
 
 # Patches already in upstream
+Patch100: rpm-4.10.90-caps-free.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -219,6 +220,8 @@ packages on a system.
 %patch3 -p1 -b .no-man-dirs
 %patch4 -p1 -b .use-gpg2
 
+%patch100 -p1 -b .caps-free
+
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
 %patch304 -p1 -b .ldflags
@@ -449,6 +452,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Sat Nov 17 2012 Panu Matilainen <pmatilai@redhat.com> - 4.10.90-0.git11989.2
+- fix double-free on %caps in spec (#877512)
+
 * Thu Nov 15 2012 Panu Matilainen <pmatilai@redhat.com> - 4.10.90-0.git11989.1
 - update to 4.11 (http://rpm.org/wiki/Releases/4.11.0) post-alpha snapshot
 - drop/adjust patches as necessary

                 reply	other threads:[~2026-11-23  9:28 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=179542608033.1.3680464249537907223.rpms-rpm-2d4d8e8284de@fedoraproject.org \
    --to=pmatilai@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