]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
- rel 46; missing import
[packages/rpm.git] / rpm-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
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.035641 seconds and 3 git commands to generate.