From 3acafb6a37350c03d9ffc3b5171c2bb651b1f7ce Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 01 2017 03:52:12 +0000 Subject: import jasper-1.900.1-31.el7 --- diff --git a/SOURCES/jasper-1.900.1-define-SIZE-MAX.patch b/SOURCES/jasper-1.900.1-define-SIZE-MAX.patch new file mode 100644 index 0000000..88671bb --- /dev/null +++ b/SOURCES/jasper-1.900.1-define-SIZE-MAX.patch @@ -0,0 +1,13 @@ +diff -urNp old/src/libjasper/include/jasper/jas_math.h new/src/libjasper/include/jasper/jas_math.h +--- old/src/libjasper/include/jasper/jas_math.h 2017-05-31 08:25:50.832055034 +0200 ++++ new/src/libjasper/include/jasper/jas_math.h 2017-05-31 08:27:47.975407832 +0200 +@@ -86,6 +86,9 @@ + + #ifdef __cplusplus + extern "C" { ++#ifndef SIZE_MAX ++#define SIZE_MAX ((size_t) - 1) ++#endif + #endif + + /******************************************************************************\ diff --git a/SPECS/jasper.spec b/SPECS/jasper.spec index 138434c..4fd6a60 100644 --- a/SPECS/jasper.spec +++ b/SPECS/jasper.spec @@ -7,7 +7,7 @@ Summary: Implementation of the JPEG-2000 standard, Part 1 Name: jasper Group: System Environment/Libraries Version: 1.900.1 -Release: 30%{?dist} +Release: 31%{?dist} License: JasPer URL: http://www.ece.uvic.ca/~frodo/jasper/ @@ -73,6 +73,8 @@ Patch36: jasper-CVE-2016-9389.patch Patch37: jasper-CVE-2016-9391.patch Patch38: jasper-CVE-implicit-declaration-fix.patch +Patch39: jasper-1.900.1-define-SIZE-MAX.patch + # autoreconf BuildRequires: autoconf automake libtool BuildRequires: freeglut-devel @@ -164,6 +166,7 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} %patch36 -p1 -b .CVE-2016-9389 %patch37 -p1 -b .CVE-2016-9391 %patch38 -p1 -b .CVE-implicit-declaration-fix +%patch39 -p1 -b .define-SIZE-MAX autoreconf --verbose --force --install @@ -233,6 +236,9 @@ make check %changelog +* Wed May 31 2017 Josef Ridky - 1.900.1-31 +- Fix missing declaration of SIZE_MAX constant in jas_math.h (#1455489) + * Tue Apr 25 2017 Josef Ridky - 1.900.1-30 - Multiple security fixes (fixed by thoger): CVE-2015-5203 CVE-2015-5221 CVE-2016-1577 CVE-2016-1867 CVE-2016-2089