United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7079530 JSObject.eval and JSObject.call with null cause browser to crash.
7079530 : JSObject.eval and JSObject.call with null cause browser to crash.

Details
Type:
Bug
Submit Date:
2011-08-15
Status:
Resolved
Updated Date:
2012-10-03
Project Name:
JDK
Resolved Date:
2011-08-17
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u2

Related Reports
Backport:
Backport:

Sub Tasks

Description
Original reported as JIRA issue at
http://javafx-jira.kenai.com/browse/RT-15811

FX runtime : http://jfx.sfbay.sun.com/hudson/job/presidio-deploy-scrum/252/label=windows-i586-14/artifact/artifacts/bundles/release/ 
JRE: jdk7-b147 and latest 7-client build 

Under negative scenarios testing it has been noticed that passing null to JSObject methods e.g. JSObject.eval either hangs or crashes the VM/browser 
Crash logs: 
http://sqeweb.us.oracle.com/deployment2/jitu/latest_ws_test/6/deployment/src/javafx/hs_err_pid4168.log 
http://sqeweb.us.oracle.com/deployment2/jitu/latest_ws_test/6/deployment/src/javafx/hs_err_pid5428.log 

Steps to reproduce 
1) Install jre followed by fx runtime 
2) load following applet inside the browser 
http://sqeweb.us.oracle.com/deployment2/jitu/latest_ws_test/6/deployment/src/javafx/LiveConnect/LiveConnect/html/EvalTest_1Plus1_negative.html 

It has been noticed most of the time IE hangs(sometimes crashes too) but firefox/chrome crashes right away

                                    

Comments
EVALUATION

NULL pointer should not cause browser to crash, and we should also prevent null as parameter at JSObject API.
                                     
2011-08-15



Hardware and Software, Engineered to Work Together