changeset in /hg/icedtea: - Add patches/icedtea-lcms-leak.patch.
Thomas Fitzsimmons
fitzsim at redhat.com
Wed Jan 16 07:09:27 PST 2008
changeset b35b62ad6ca7 in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=b35b62ad6ca7
description:
- Add patches/icedtea-lcms-leak.patch.
diffstat:
2 files changed, 15 insertions(+)
ChangeLog | 1 +
patches/icedtea-lcms-leak.patch | 14 ++++++++++++++
diffs (29 lines):
diff -r db06e9fe87bf -r b35b62ad6ca7 ChangeLog
--- a/ChangeLog Fri Nov 16 17:37:09 2007 -0500
+++ b/ChangeLog Fri Nov 16 18:04:31 2007 -0500
@@ -3,6 +3,7 @@ 2007-11-16 Thomas Fitzsimmons <fitzsim
* Makefile.am (ICEDTEA_PATCHES): Add
patches/icedtea-lcms-leak.patch.
* Makefile.in: Regenerate.
+ * patches/icedtea-lcms-leak.patch: New file.
2007-11-16 Gary Benson <gbenson at redhat.com>
diff -r db06e9fe87bf -r b35b62ad6ca7 patches/icedtea-lcms-leak.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/icedtea-lcms-leak.patch Fri Nov 16 18:04:31 2007 -0500
@@ -0,0 +1,14 @@
+--- openjdk/jdk/src/share/native/sun/java2d/cmm/lcms/LCMS.c.orig 2007-11-15 19:07:12.000000000 -0500
++++ openjdk/jdk/src/share/native/sun/java2d/cmm/lcms/LCMS.c 2007-11-15 19:09:31.000000000 -0500
+@@ -183,9 +183,10 @@
+ sProf.pf = cmsOpenProfileFromMem((LPVOID)dataArray, (DWORD) dataSize);
+
+ if (sProf.pf == NULL) {
++ (*env)->ReleaseByteArrayElements (env, data, dataArray, 0);
+ JNU_ThrowIllegalArgumentException(env, "Invalid profile data");
+ }
+-
++ (*env)->ReleaseByteArrayElements (env, data, dataArray, 0);
+ return sProf.j;
+ }
+
More information about the distro-pkg-dev
mailing list