changeset 52946:c9cfa7d5778d datum

adding back else for unknown attribute at ClassFileParser::parse_classfile_attributes
author vromero
date Tue, 30 Oct 2018 23:11:00 -0400
parents ee2b4eb8a6e7
children 42acc7e03b24 9e4fc2e97fd0
files src/hotspot/share/classfile/classFileParser.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/classfile/classFileParser.cpp	Tue Oct 30 22:54:37 2018 -0400
+++ b/src/hotspot/share/classfile/classFileParser.cpp	Tue Oct 30 23:11:00 2018 -0400
@@ -3672,6 +3672,9 @@
           record_attribute_start = cfs->current();
           record_attribute_length = attribute_length;
           cfs->skip_u1(record_attribute_length, CHECK);
+        } else {
+          // Unknown attribute
+          cfs->skip_u1(attribute_length, CHECK);
         }
       } else {
         // Unknown attribute