Mercurial > hg > graal-jvmci-8
diff src/share/vm/classfile/classFileParser.cpp @ 17853:a18dafb24f80
Merge
author | asaha |
---|---|
date | Fri, 14 Mar 2014 22:57:00 -0700 |
parents | 9acf9c25774d 9b289963cb9a |
children | b6a2ba7d3ea7 |
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp Wed Mar 12 14:10:31 2014 -0700 +++ b/src/share/vm/classfile/classFileParser.cpp Fri Mar 14 22:57:00 2014 -0700 @@ -2777,6 +2777,11 @@ "Short length on BootstrapMethods in class file %s", CHECK); + guarantee_property(attribute_byte_length > sizeof(u2), + "Invalid BootstrapMethods attribute length %u in class file %s", + attribute_byte_length, + CHECK); + // The attribute contains a counted array of counted tuples of shorts, // represending bootstrap specifiers: // length*{bootstrap_method_index, argument_count*{argument_index}}