rpms/lcms/F-9 coverity-boundchecking-cmsio1.patch, NONE, 1.1 lcms.spec, 1.16, 1.17 lcms-1.14-fc4-swigtype.patch, 1.1, NONE

Chauvet (kwizart) fedora-extras-commits at redhat.com
Tue Jun 3 09:36:23 UTC 2008


Author: kwizart

Update of /cvs/pkgs/rpms/lcms/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28255

Modified Files:
	lcms.spec 
Added Files:
	coverity-boundchecking-cmsio1.patch 
Removed Files:
	lcms-1.14-fc4-swigtype.patch 
Log Message:
- Fix Array indexing error in ReadCurve - #448066
- Fix packaging bug #432568 (multilib transition).
- Move libs to mutlilibs
- Prevent timestramps change
- Convert files-not-utf8


coverity-boundchecking-cmsio1.patch:

--- NEW FILE coverity-boundchecking-cmsio1.patch ---
Index: modules/lcms/src/cmsio1.c
===================================================================
RCS file: /cvsroot/mozilla/modules/lcms/src/cmsio1.c,v
retrieving revision 1.2
diff -u -8 -p -r1.2 cmsio1.c
--- modules/lcms/src/cmsio1.c	6 Aug 2007 20:01:21 -0000	1.2
+++ modules/lcms/src/cmsio1.c	3 Jan 2008 11:15:18 -0000
@@ -919,17 +919,17 @@ LPGAMMATABLE ReadCurve(LPLCMSICCPROFILE 
            icUInt32Number Reserved;
            icUInt16Number   Type;
            int i;
            
            if (Icc -> Read(&Type, sizeof(icUInt16Number), 1, Icc) != 1) return NULL;
            if (Icc -> Read(&Reserved, sizeof(icUInt16Number), 1, Icc) != 1) return NULL;
            
            AdjustEndianess16((LPBYTE) &Type);
-           if (Type > 5) {
+           if (Type > 4) {
 
                 cmsSignalError(LCMS_ERRC_ABORTED, "Unknown parametric curve type '%d' found.", Type);
                 return NULL;
            }
         
           ZeroMemory(Params, 10* sizeof(double));
           n = ParamsByType[Type];
 
@@ -1028,17 +1028,17 @@ LPGAMMATABLE ReadCurveReversed(LPLCMSICC
            icUInt16Number   Type;
            int i;
 
 
            if (Icc -> Read(&Type, sizeof(icUInt16Number), 1, Icc) != 1) return NULL;
            if (Icc -> Read(&Reserved, sizeof(icUInt16Number), 1, Icc) != 1) return NULL;
            
            AdjustEndianess16((LPBYTE) &Type);
-           if (Type > 5) {
+           if (Type > 4) {
 
                 cmsSignalError(LCMS_ERRC_ABORTED, "Unknown parametric curve type '%d' found.", Type);
                 return NULL;
            }
         
           ZeroMemory(Params, 10* sizeof(double));
           n = ParamsByType[Type];
 


Index: lcms.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lcms/F-9/lcms.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- lcms.spec	13 Feb 2008 00:33:56 -0000	1.16
+++ lcms.spec	3 Jun 2008 09:35:23 -0000	1.17
@@ -2,7 +2,7 @@
 
 Name:           lcms
 Version:        1.17
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Color Management System
 
 Group:          Applications/Productivity
@@ -10,6 +10,7 @@
 URL:            http://www.littlecms.com/
 Source0:        http://www.littlecms.com/lcms-%{version}.tar.gz
 Patch1:         lcms-1.16-python-lib64.patch
+Patch2:         coverity-boundchecking-cmsio1.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  libjpeg-devel
@@ -60,6 +61,7 @@
 %prep
 %setup -q
 %patch1 -p1 -b .python-lib64
+%patch2 -p2 -b .type4
 find . -name \*.[ch] | xargs chmod -x
 
 # Convert not UTF-8 files
@@ -122,6 +124,9 @@
 
 
 %changelog
+* Tue Jun 3 2008 kwizart < kwizart at gmail.com > - 1.17-5
+- Fix Array indexing error in ReadCurve - #448066
+
 * Wed Feb 13 2008 kwizart < kwizart at gmail.com > - 1.17-4
 - Fix packaging bug #432568 (multilib transition).
 


--- lcms-1.14-fc4-swigtype.patch DELETED ---




More information about the fedora-extras-commits mailing list