United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6546086 VM crash when parsing a classfile with garbage in it.
JDK-6546086 : VM crash when parsing a classfile with garbage in it.

Details
Type:
Bug
Submit Date:
2007-04-13
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2007-06-20
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs10 (b14)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
An agent which tries to redefine a class with an incomplete classfile can cause a VM crash during classfile parsing.   Refer to the details of CR 6545149.  In that case, the agent is not reading the full classfile and passing the partial classfile to the VM, which is crashing.

                                    

Comments
EVALUATION

The class file parser silently ignores a number of legitimate errors for trusted classes (those loaded by bootstrap and not going to be verified).  Those classes should not be given a free pass since if the data is wrong it can crash the VM.
                                     
2007-04-16
EVALUATION

Added a single check to make sure the method signature is valid before trying to parse it.  This check now occurs regardless of the verification state of the class.
                                     
2007-05-24



Hardware and Software, Engineered to Work Together