United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7083071 javaws.exe crash due to free() of non-null terminated string
JDK-7083071 : javaws.exe crash due to free() of non-null terminated string

Details
Type:
Bug
Submit Date:
2011-08-24
Status:
Resolved
Updated Date:
2011-09-22
Project Name:
JDK
Resolved Date:
2011-09-06
Component:
deploy
OS:
windows
Sub-Component:
webstart
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
7-client
Fixed Versions:
7u2 (b04)

Related Reports
Backport:

Sub Tasks

Description
javaws.exe crash due to free() of non-null terminated string

                                    

Comments
EVALUATION

javaws.exe crash due to free() of non-null terminated string
                                     
2011-08-24
EVALUATION

we terminated a string incorrectly:

 // make sure it is zero terminated
               jnlp[size] = '0';

later we call free(jnlp), and this might cause crash.

fix:  should use the right  character '\0' to terminate string.
                                     
2011-08-24
SUGGESTED FIX

http://sa.us.oracle.com/projects/deployment_data/7-client/7083071.0
                                     
2011-08-25



Hardware and Software, Engineered to Work Together