1.1 --- a/src/share/vm/classfile/classFileParser.cpp Wed Mar 12 14:10:31 2014 -0700 1.2 +++ b/src/share/vm/classfile/classFileParser.cpp Fri Mar 14 22:57:00 2014 -0700 1.3 @@ -2777,6 +2777,11 @@ 1.4 "Short length on BootstrapMethods in class file %s", 1.5 CHECK); 1.6 1.7 + guarantee_property(attribute_byte_length > sizeof(u2), 1.8 + "Invalid BootstrapMethods attribute length %u in class file %s", 1.9 + attribute_byte_length, 1.10 + CHECK); 1.11 + 1.12 // The attribute contains a counted array of counted tuples of shorts, 1.13 // represending bootstrap specifiers: 1.14 // length*{bootstrap_method_index, argument_count*{argument_index}}