--- old/src/hotspot/share/classfile/classFileParser.cpp 2018-02-08 00:25:12.335021914 -0500 +++ new/src/hotspot/share/classfile/classFileParser.cpp 2018-02-08 00:25:10.862937696 -0500 @@ -3492,6 +3492,9 @@ if (parsed_nest_members_attribute) { classfile_parse_error("Conflicting NestMembers and NestHost attributes in class file %s", CHECK); } + if (_need_verify) { + guarantee_property(attribute_length == 2, "Wrong NestHost attribute length in class file %s", CHECK); + } cfs->guarantee_more(2, CHECK); u2 class_info_index = cfs->get_u2_fast(); check_property(