RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Bernhard Rosenkraenzer
Root: /v/rpm/cvs Email: bero@rpm5.org
Module: rpm Date: 15-Oct-2007 14:08:48
Branch: HEAD Handle: 2007101513084800
Modified files:
rpm CHANGES
rpm/lib depends.c
Log:
Fix possible crash when installing a src.rpm (caused by uninitialized variable)
Submitted by: bero
Summary:
Revision Changes Path
1.1711 +2 -0 rpm/CHANGES
1.349 +2 -2 rpm/lib/depends.c
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/CHANGES
============================================================================
$ cvs diff -u -r1.1710 -r1.1711 CHANGES
--- rpm/CHANGES 15 Oct 2007 07:02:26 -0000 1.1710
+++ rpm/CHANGES 15 Oct 2007 12:08:48 -0000 1.1711
@@ -1,4 +1,6 @@
4.5 -> 5.0:
+ - bero: Initialize arch and os in rpmtsAddInstallElement, fixing crash when
+ installing a src.rpm
- jbj: fix: typo broke i32p indices when sizeof(void *) != sizeof(int_32).
- jbj: add RPM_INT64_TYPE rpmdb indices (untested).
- jbj: ah, there's the rpmdb basenames memory leak (but leave disabled).
@@ .
patch -p0 <<'@@ .'
Index: rpm/lib/depends.c
============================================================================
$ cvs diff -u -r1.348 -r1.349 depends.c
--- rpm/lib/depends.c 14 Oct 2007 22:53:57 -0000 1.348
+++ rpm/lib/depends.c 15 Oct 2007 12:08:48 -0000 1.349
@@ -210,8 +210,8 @@
int isSource;
int duplicate = 0;
rpmtsi pi = NULL; rpmte p;
- const char * arch;
- const char * os;
+ const char * arch = NULL;
+ const char * os = NULL;
rpmds oldChk, newChk;
rpmds obsoletes;
alKey pkgKey; /* addedPackages key */
@@ .
Received on Mon Oct 15 14:08:48 2007