Hello community,

here is the log from the commit of package zutils for openSUSE:Factory checked 
in at 2018-08-07 09:43:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/zutils (Old)
 and      /work/SRC/openSUSE:Factory/.zutils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "zutils"

Tue Aug  7 09:43:00 2018 rev:5 rq:627646 version:1.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/zutils/zutils.changes    2018-07-17 
09:41:34.733470452 +0200
+++ /work/SRC/openSUSE:Factory/.zutils.new/zutils.changes       2018-08-07 
09:43:01.301304129 +0200
@@ -1,0 +2,5 @@
+Mon Aug  6 10:29:51 UTC 2018 - aloi...@gmx.com
+
+- Added zutils-1.7-zcat-buffer-overrun.patch (fixes boo#1103878)
+
+-------------------------------------------------------------------

New:
----
  zutils-1.7-zcat-buffer-overrun.patch

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

Other differences:
------------------
++++++ zutils.spec ++++++
--- /var/tmp/diff_new_pack.nAZvWI/_old  2018-08-07 09:43:01.713304846 +0200
+++ /var/tmp/diff_new_pack.nAZvWI/_new  2018-08-07 09:43:01.713304846 +0200
@@ -26,6 +26,8 @@
 Source0:        
https://download.savannah.gnu.org/releases/zutils/zutils-%{version}.tar.lz
 Source1:        
https://download.savannah.gnu.org/releases/zutils/zutils-%{version}.tar.lz.sig
 Source2:        %{name}.keyring
+# PATCH-FIX-UPSTREAM zutils-1.7-zcat-buffer-overrun.patch
+Patch0:         zutils-1.7-zcat-buffer-overrun.patch
 BuildRequires:  gcc-c++
 BuildRequires:  lzip
 Requires(post): %{install_info_prereq}
@@ -44,6 +46,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure

++++++ zutils-1.7-zcat-buffer-overrun.patch ++++++
Author: Antonio Diaz Diaz <anto...@gnu.org>
Description: zcat.cc: Fixed a buffer overrun on outbuf when '-v' is used.

diff -Naurp zutils/zcat.cc zutils/zcat.cc
--- zutils/zcat.cc
+++ zutils/zcat.cc
@@ -232,8 +232,9 @@ int cat( int infd, const int format_inde
   enum { buffer_size = 4096 };
   // buffer with space for sentinel newline at the end
   uint8_t * const inbuf = new uint8_t[buffer_size+1];
-  // buffer with space for character quoting and 255-digit line number
-  uint8_t * const outbuf = new uint8_t[(4*buffer_size)+256];
+  // buffer with space for character quoting, 255-digit line number and
+  // worst case flushing respect to inbuf.
+  uint8_t * const outbuf = new uint8_t[(5*buffer_size)+256];
   int retval = 0;
   Children children;
   if( !set_data_feeder( input_filename, &infd, children, format_index ) )




Reply via email to