Hello community, here is the log from the commit of package libjpeg-turbo for openSUSE:Factory checked in at 2019-11-15 22:33:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libjpeg-turbo (Old) and /work/SRC/openSUSE:Factory/.libjpeg-turbo.new.26869 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libjpeg-turbo" Fri Nov 15 22:33:22 2019 rev:50 rq:748021 version:unknown Changes: -------- --- /work/SRC/openSUSE:Factory/libjpeg-turbo/libjpeg-turbo.changes 2019-10-14 12:30:58.136352144 +0200 +++ /work/SRC/openSUSE:Factory/.libjpeg-turbo.new.26869/libjpeg-turbo.changes 2019-11-15 22:33:23.744043847 +0100 @@ -1,0 +2,8 @@ +Tue Nov 12 14:09:12 UTC 2019 - pgajdos@suse.com + +- fix upstream bug 388 [bsc#1156402] +- added patches + https://github.com/libjpeg-turbo/libjpeg-turbo/issues/388 + + libjpeg-turbo-issue-388.patch + +------------------------------------------------------------------- New: ---- libjpeg-turbo-issue-388.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libjpeg-turbo.spec ++++++ --- /var/tmp/diff_new_pack.NzvCq5/_old 2019-11-15 22:33:24.756043403 +0100 +++ /var/tmp/diff_new_pack.NzvCq5/_new 2019-11-15 22:33:24.756043403 +0100 @@ -39,6 +39,8 @@ Source1: baselibs.conf Patch1: libjpeg-turbo-1.3.0-tiff-ojpeg.patch Patch2: ctest-depends.patch +# https://github.com/libjpeg-turbo/libjpeg-turbo/issues/388 +Patch3: libjpeg-turbo-issue-388.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -104,6 +106,7 @@ %setup -q %patch1 %patch2 -p1 +%patch3 -p1 %build MYLDFLAGS="-Wl,-z,relro,-z,now" ++++++ libjpeg-turbo-issue-388.patch ++++++ --- a/tjbench.c +++ b/tjbench.c @@ -171,7 +171,7 @@ static int decomp(unsigned char *srcBuf, unsigned char **jpegBuf, } /* Set the destination buffer to gray so we know whether the decompressor attempted to write to it */ - memset(dstBuf, 127, pitch * scaledh); + memset(dstBuf, 127, (size_t)pitch * scaledh); if (doYUV) { int width = doTile ? tilew : scaledw; @@ -193,7 +193,7 @@ static int decomp(unsigned char *srcBuf, unsigned char **jpegBuf, double start = getTime(); for (row = 0, dstPtr = dstBuf; row < ntilesh; - row++, dstPtr += pitch * tileh) { + row++, dstPtr += (size_t)pitch * tileh) { for (col = 0, dstPtr2 = dstPtr; col < ntilesw; col++, tile++, dstPtr2 += ps * tilew) { int width = doTile ? min(tilew, w - col * tilew) : scaledw;