Blame SOURCES/zip-3.0-zipnote-fclose.patch

dd4421
From 4872f7a731926173be9a56b01e60e162731738dd Mon Sep 17 00:00:00 2001
dd4421
From: Kamil Dudka <kdudka@redhat.com>
dd4421
Date: Wed, 16 Sep 2015 13:00:01 +0200
dd4421
Subject: [PATCH] fix memory corruption in zipnote caused by invalid fclose()
dd4421
dd4421
Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628594
dd4421
---
dd4421
 zipnote.c | 2 +-
dd4421
 1 file changed, 1 insertion(+), 1 deletion(-)
dd4421
dd4421
diff --git a/zipnote.c b/zipnote.c
dd4421
index 5e02cb6..996f012 100644
dd4421
--- a/zipnote.c
dd4421
+++ b/zipnote.c
dd4421
@@ -661,7 +661,7 @@ char **argv;            /* command line tokens */
dd4421
     if ((r = zipcopy(z)) != ZE_OK)
dd4421
       ziperr(r, "was copying an entry");
dd4421
   }
dd4421
-  fclose(x);
dd4421
+  fclose(in_file);
dd4421
 
dd4421
   /* Write central directory and end of central directory with new comments */
dd4421
   if ((c = zftello(y)) == (zoff_t)-1)    /* get start of central */
dd4421
-- 
dd4421
2.4.6
dd4421