rpms/rpm/devel rpm-4.5.90-macroarg.patch, NONE, 1.1 rpm.spec, 1.286, 1.287
Panu Matilainen (pmatilai)
fedora-extras-commits at redhat.com
Tue Jul 15 17:19:10 UTC 2008
Author: pmatilai
Update of /cvs/pkgs/rpms/rpm/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13911
Modified Files:
rpm.spec
Added Files:
rpm-4.5.90-macroarg.patch
Log Message:
- macro arg handling tweaks to fix #455307
rpm-4.5.90-macroarg.patch:
--- NEW FILE rpm-4.5.90-macroarg.patch ---
diff --git a/rpmio/macro.c b/rpmio/macro.c
index 14d4565..cc0638a 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -797,8 +797,10 @@ grabArgs(MacroBuf mb, const rpmMacroEntry me, const char * se,
{ ARGV_t av = NULL;
char *s = xcalloc((lastc-se)+1, sizeof(*s));
- memmove(s, se, (lastc-se));
- ret = se + strlen(s) + 1;
+ /* XXX expandMacro() expects next \0 which can be beyond lastc */
+ ret = strchr(se, '\0');
+ memcpy(s, se, (lastc-se));
+
argvSplit(&av, s, " ");
argvAppend(&argv, av);
Index: rpm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rpm/devel/rpm.spec,v
retrieving revision 1.286
retrieving revision 1.287
diff -u -r1.286 -r1.287
--- rpm.spec 14 Jul 2008 08:59:41 -0000 1.286
+++ rpm.spec 15 Jul 2008 17:18:17 -0000 1.287
@@ -18,7 +18,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
-Release: 0.%{snapver}.7
+Release: 0.%{snapver}.8
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -34,6 +34,7 @@
# These are already upstream, drop on next snapshot update:
Patch200: rpm-4.5.90-digestlen.patch
Patch201: rpm-4.5.90-mono-magic.patch
+Patch202: rpm-4.5.90-macroarg.patch
# Partially GPL/LGPL dual-licensed and some bits with BSD
# SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD
@@ -163,6 +164,7 @@
%patch200 -p1 -b .diglen
%patch201 -p1 -b .mono-magic
+%patch202 -p1 -b .macroarg
%if %{with int_bdb}
ln -s db-%{bdbver} db
@@ -338,6 +340,10 @@
%doc doc/librpm/html/*
%changelog
+* Tue Jul 15 2008 Panu Matilainen <pmatilai at redhat.com>
+- 4.5.90-0.git8426.8
+- fix regression in macro argument handling (#455333)
+
* Mon Jul 14 2008 Panu Matilainen <pmatilai at redhat.com>
- 4.5.90-0.git8426.7
- fix mono dependency extraction (adjust for libmagic string change)
More information about the scm-commits
mailing list