/hg/release/icedtea-web-1.0: PR838: IcedTea plugin crashes with ...

dbhole at icedtea.classpath.org dbhole at icedtea.classpath.org
Mon Jan 9 15:52:43 PST 2012


changeset 06a4e046a700 in /hg/release/icedtea-web-1.0
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.0?cmd=changeset;node=06a4e046a700
author: Deepak Bhole <dbhole at redhat.com>
date: Mon Jan 09 18:45:31 2012 -0500

	PR838: IcedTea plugin crashes with chrome browser when javascript is
	executed


diffstat:

 ChangeLog                                         |  7 +++++++
 NEWS                                              |  1 +
 plugin/icedteanp/IcedTeaPluginRequestProcessor.cc |  8 +++++++-
 3 files changed, 15 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r 990dc0dd5c48 -r 06a4e046a700 ChangeLog
--- a/ChangeLog	Thu Dec 22 16:15:54 2011 -0500
+++ b/ChangeLog	Mon Jan 09 18:45:31 2012 -0500
@@ -1,3 +1,10 @@
+2012-01-09  Deepak Bhole <dbhole at redhat.com>
+
+	PR838: IcedTea plugin crashes with chrome browser when javascript is executed
+	* plugin/icedteanp/IcedTeaPluginRequestProcessor.cc (eval): Added a check
+	to ensure that the result pointer is valid before attempting to create an
+	NPVariant from it.
+
 2011-12-22  Thomas Meyer <thomas at m3y3r.de>
 
 	* plugin/icedteanp/IcedTeaPluginRequestProcessor.cc(sendMember): Use
diff -r 990dc0dd5c48 -r 06a4e046a700 NEWS
--- a/NEWS	Thu Dec 22 16:15:54 2011 -0500
+++ b/NEWS	Mon Jan 09 18:45:31 2012 -0500
@@ -11,6 +11,7 @@
 New in release 1.0.7 (2011-XX-XX):
 * Plugin
   - RH586194: Unable to connect to connect with Juniper VPN client
+  - PR838: IcedTea plugin crashes with chrome browser when javascript is executed
 
 New in release 1.0.6 (2011-11-08):
 * Security updates
diff -r 990dc0dd5c48 -r 06a4e046a700 plugin/icedteanp/IcedTeaPluginRequestProcessor.cc
--- a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc	Thu Dec 22 16:15:54 2011 -0500
+++ b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc	Mon Jan 09 18:45:31 2012 -0500
@@ -243,7 +243,13 @@
 
     NPVariant* result_variant = (NPVariant*) IcedTeaPluginUtilities::stringToJSID(thread_data.result);
     std::string result_variant_jniid = std::string();
-    createJavaObjectFromVariant(instance, *result_variant, &result_variant_jniid);
+    if (result_variant)
+    {
+        createJavaObjectFromVariant(instance, *result_variant, &result_variant_jniid);
+    } else
+    {
+        result_variant_jniid = "0";
+    }
 
     IcedTeaPluginUtilities::constructMessagePrefix(0, reference, &response);
     response += " JavaScriptEval ";



More information about the distro-pkg-dev mailing list