Hello community,

here is the log from the commit of package zziplib for openSUSE:Factory checked 
in at 2019-10-30 14:42:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/zziplib (Old)
 and      /work/SRC/openSUSE:Factory/.zziplib.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "zziplib"

Wed Oct 30 14:42:20 2019 rev:34 rq:743449 version:0.13.69

Changes:
--------
--- /work/SRC/openSUSE:Factory/zziplib/zziplib.changes  2019-06-18 
14:53:21.037519304 +0200
+++ /work/SRC/openSUSE:Factory/.zziplib.new.2990/zziplib.changes        
2019-10-30 14:42:21.449833842 +0100
@@ -1,0 +2,6 @@
+Thu Oct 17 09:30:20 UTC 2019 - Josef Möllers <[email protected]>
+
+- Fixed another instance where division by 0 may occur.
+  [bsc#1129403, bsc1129403-prevent-division-by-zero.patch]
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ zziplib.spec ++++++
--- /var/tmp/diff_new_pack.ULm8qO/_old  2019-10-30 14:42:22.229834672 +0100
+++ /var/tmp/diff_new_pack.ULm8qO/_new  2019-10-30 14:42:22.233834677 +0100
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -21,7 +21,7 @@
 Version:        0.13.69
 Release:        0
 Summary:        ZIP Compression Library
-License:        LGPL-2.1+
+License:        LGPL-2.1-or-later
 Group:          Development/Libraries/C and C++
 Url:            http://zziplib.sourceforge.net
 Source0:        
https://github.com/gdraheim/zziplib/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

++++++ bsc1129403-prevent-division-by-zero.patch ++++++
--- /var/tmp/diff_new_pack.ULm8qO/_old  2019-10-30 14:42:22.277834723 +0100
+++ /var/tmp/diff_new_pack.ULm8qO/_new  2019-10-30 14:42:22.277834723 +0100
@@ -2,7 +2,27 @@
 ===================================================================
 --- zziplib-0.13.69.orig/bins/unzip-mem.c
 +++ zziplib-0.13.69/bins/unzip-mem.c
-@@ -231,9 +231,12 @@ static void zzip_mem_entry_direntry(ZZIP
+@@ -186,6 +186,7 @@ static void zzip_mem_entry_direntry_star
+ static void zzip_mem_entry_direntry_done (void)
+ {
+     char exp = ' ';
++    long percentage;
+     if (sum_usize / 1024 > 1024*1024*1024) { exp = 'G';
+       sum_usize /= 1024*1024*1024; sum_usize /= 1024*1024*1024; }
+     if (sum_usize > 1024*1024*1024) { exp = 'M';
+@@ -199,9 +200,10 @@ static void zzip_mem_entry_direntry_done
+     return;
+  verbose:
+     printf("--------  ------  ------- -----                           
----\n");
++    percentage = sum_usize ? (L (100 - (sum_csize*100/sum_usize))) : 0; /* 0% 
if file size is 0 */
+     printf("%8li%c       %8li%c %3li%%                     %8li %s\n",
+          L sum_usize, exp, L sum_csize, exp, 
+-         L (100 - (sum_csize*100/sum_usize)), L sum_files, 
++         percentage, L sum_files,
+          sum_files == 1 ? "file" : "files");
+ }
+ 
+@@ -231,9 +233,12 @@ static void zzip_mem_entry_direntry(ZZIP
      if (*name == '\n') name++;
  
      if (option_verbose) {


Reply via email to