]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
- gpg2 is now gpg
[packages/rpm.git] / rpm-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
CommitLineData
70f8787d
JR
1--- rpm-5.4.7/rpmdb/hdrfmt.c.unitialized~ 2012-03-19 14:21:14.907225418 +0100
2+++ rpm-5.4.7/rpmdb/hdrfmt.c 2012-03-19 14:21:17.327228582 +0100
3@@ -2048,8 +2048,10 @@ static int triggertypeTag(Header h, HE_t
4 he->p.argv = xmalloc(sizeof(*he->p.argv) * he->c);
5 for (i = 0; i < (unsigned) he->c; i++) {
6 for (j = 0; j < (unsigned) numNames; j++) {
7- if (indices.ui32p[j] != i)
8+ if (indices.ui32p[j] != i) {
9+ he->p.argv[i] = NULL;
10 /*@innercontinue@*/ continue;
11+ }
12
13 /* XXX FIXME: there's memory leaks here. */
14 if (flags.ui32p[j] & RPMSENSE_TRIGGERPREIN)
This page took 0.025805 seconds and 4 git commands to generate.