changeset 1044:8e3089767a4a

2008-09-18 Lillian Angel <langel@redhat.com> * AUTHORS: Added Marc Schoenefeld. 2008-09-18 Marc Schoenefeld <mschoene@redhat.com> * patches/icedtea-messageutils.patch: New patch fixes JVM crashes when calling on sun.misc.MessageUtils.toStderr(null) and sun.misc.MessageUtils.toStdout(null) . It now prompts the string "null" to the console. * Makefile.am: Added patch above.
author Lillian Angel <langel@redhat.com>
date Thu, 18 Sep 2008 11:31:59 -0400
parents 1c7da2861925
children d2579e023b0e 3e5d21f2b7a4
files AUTHORS ChangeLog Makefile.am patches/icedtea-messageutils.patch
diffstat 4 files changed, 28 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/AUTHORS	Mon Sep 15 17:21:14 2008 -0400
+++ b/AUTHORS	Thu Sep 18 11:31:59 2008 -0400
@@ -15,6 +15,7 @@
 Dan Munckton <lists@munckfish.net>
 Raif Naffah <admin@naffah-raif.name>
 Bernhard Rosenkränzer <bero@arklinux.org>
+Marc Schoenefeld <mschoene@redhat.com>
 Keith Seitz <keiths@redhat.com>
 Joshua Sumali <jsumali@redhat.com>
 Christian Thalinger <twisti@complang.tuwien.ac.at>
--- a/ChangeLog	Mon Sep 15 17:21:14 2008 -0400
+++ b/ChangeLog	Thu Sep 18 11:31:59 2008 -0400
@@ -1,4 +1,16 @@
-2008-08-26  Deepak Bhole  <dbhole@redhat.com>
+2008-09-18  Lillian Angel  <langel@redhat.com>
+
+	* AUTHORS: Added Marc Schoenefeld.
+
+2008-09-18  Marc Schoenefeld  <mschoene@redhat.com>
+	
+	* patches/icedtea-messageutils.patch: New patch fixes JVM crashes 
+	when calling on sun.misc.MessageUtils.toStderr(null) and
+	sun.misc.MessageUtils.toStdout(null) . It now prompts
+	the string "null" to the console. 
+	* Makefile.am: Added patch above.
+
+2008-09-16  Deepak Bhole  <dbhole@redhat.com>
 
 	* IcedTeaPlugin.cc: Allow access to applet classloader from JS on that
 	site. Fix right-click lag by temporarily disabling status messages.
--- a/Makefile.am	Mon Sep 15 17:21:14 2008 -0400
+++ b/Makefile.am	Thu Sep 18 11:31:59 2008 -0400
@@ -499,7 +499,8 @@
 	$(SHARK_PATCH) \
 	$(GCC_PATCH) \
 	patches/icedtea-arch.patch \
-	patches/icedtea-lc_ctype.patch
+	patches/icedtea-lc_ctype.patch \
+	patches/icedtea-messageutils.patch
 
 if WITH_RHINO
 ICEDTEA_PATCHES += \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/icedtea-messageutils.patch	Thu Sep 18 11:31:59 2008 -0400
@@ -0,0 +1,12 @@
+--- openjdk/jdk/src/share/native/sun/misc/MessageUtils.c.orig 2008-09-17 15:17:02.000000000 +0200
++++ openjdk/jdk/src/share/native/sun/misc/MessageUtils.c      2008-09-17 15:56:07.000000000 +0200
+@@ -39,6 +39,9 @@ printToFile(JNIEnv *env, jstring s, FILE
+    int i;
+     const jchar *sAsArray;
+
++    if (s == NULL) {
++       s = (*env)->NewStringUTF(env, "null\0");
++    }
+     sAsArray = (*env)->GetStringChars(env, s, NULL);
+     length = (*env)->GetStringLength(env, s);
+     sConverted = (char *) malloc(length + 1);