United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6768120 Initialization of document base not working on Safari on Mac OS X
JDK-6768120 : Initialization of document base not working on Safari on Mac OS X

Details
Type:
Bug
Submit Date:
2008-11-06
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2009-01-21
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u12
Fixed Versions:
6u12 (b02)

Related Reports

Sub Tasks

Description
The code in the NPAPI version of the new Java Plug-In which fetches the initial document base from the browser is incorrectly assuming that the fetched NPString is null-terminated, causing garbage to be appended to the string and preventing applets from running in some situations.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u12/6768120.0
                                     
2008-11-06
EVALUATION

Changed MozPluginInstance::GetDocumentBase() to return newly allocated
storage for simplicity's sake, and to properly null-terminate the
resulting string.

No test case as the bug only occurred in Safari on Mac OS X. Tested
manually with that browser.
                                     
2008-11-06



Hardware and Software, Engineered to Work Together