rpms/lcms/devel 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:11:15 UTC 2008
- Previous message (by thread): rpms/icu/devel .cvsignore, 1.10, 1.11 icu.spec, 1.73, 1.74 sources, 1.10, 1.11 icu.regexp.patch, 1.1, NONE
- Next message (by thread): rpms/openoffice.org-voikko/devel openoffice.org-voikko-2.2-3layer.patch, NONE, 1.1 openoffice.org-voikko.spec, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: kwizart
Update of /cvs/pkgs/rpms/lcms/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27308
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
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/devel/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:10:10 -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 ---
- Previous message (by thread): rpms/icu/devel .cvsignore, 1.10, 1.11 icu.spec, 1.73, 1.74 sources, 1.10, 1.11 icu.regexp.patch, 1.1, NONE
- Next message (by thread): rpms/openoffice.org-voikko/devel openoffice.org-voikko-2.2-3layer.patch, NONE, 1.1 openoffice.org-voikko.spec, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list