commit f73b4d7999ce291d24dfb074f8868c96f015fb55
Author: Artur Frysiak <[email protected]>
Date:   Thu Nov 21 22:12:13 2013 +0100

    Fix memory corruption introduced by rpm5.patch

 zif-rpm5.patch | 10 +++++-----
 zif.spec       |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/zif.spec b/zif.spec
index 70b34bb..64bb1a1 100644
--- a/zif.spec
+++ b/zif.spec
@@ -2,7 +2,7 @@ Summary:        Simple wrapper for rpm and the Fedora package 
metadata
 Summary(pl.UTF-8):     Proste opakowanie dla rpm-a i metadanych pakietów Fedory
 Name:          zif
 Version:       0.3.6
-Release:       0.1
+Release:       0.2
 License:       GPL v2+
 Group:         Libraries
 Source0:       
http://people.freedesktop.org/~hughsient/zif/releases/%{name}-%{version}.tar.xz
diff --git a/zif-rpm5.patch b/zif-rpm5.patch
index 10071c2..f811824 100644
--- a/zif-rpm5.patch
+++ b/zif-rpm5.patch
@@ -14,7 +14,7 @@
        rpmtd td;
  
 -      td = rpmtdNew ();
-+      td = malloc (sizeof (rpmtd));
++      td = malloc (sizeof (* td));
        retval = headerGet (header, tag, td, HEADERGET_MINMEM);
  
        if (retval != 1)
@@ -36,7 +36,7 @@
        rpmtd td;
  
 -      td = rpmtdNew ();
-+      td = malloc (sizeof (rpmtd));
++      td = malloc (sizeof (* td));
        retval = headerGet (header, tag, td, HEADERGET_MINMEM);
        if (retval != 1)
                goto out;
@@ -62,7 +62,7 @@
        rpmtd td;
  
 -      td = rpmtdNew ();
-+      td = malloc (sizeof (rpmtd));
++      td = malloc (sizeof (* td));
        retval = headerGet (header, RPMTAG_SIZE, td, HEADERGET_MINMEM);
        if (retval != 1)
                goto out;
@@ -80,7 +80,7 @@
        guint i;
  
 -      td = rpmtdNew ();
-+      td = malloc (sizeof (rpmtd));
++      td = malloc (sizeof (* td));
        retval = headerGet (header, tag, td, HEADERGET_MINMEM);
        if (retval != 1)
                goto out;
@@ -98,7 +98,7 @@
        rpmtd td;
  
 -      td = rpmtdNew ();
-+      td = malloc (sizeof (rpmtd));
++      td = malloc (sizeof (* td));
        retval = headerGet (header, tag, td, HEADERGET_DEFAULT);
        if (retval != 1)
                goto out;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zif.git/commitdiff/f73b4d7999ce291d24dfb074f8868c96f015fb55

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to