Skip to content

Commit 349e1fb

Browse files
committed
fix(attribute_parser): dont panic at StackMapTable attribute
1 parent 80e5e1d commit 349e1fb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/classloader.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ pub enum AttributeInfo {
7474
LineNumberTable,
7575
LocalVariableTable,
7676
Exceptions,
77+
StackMapTable,
7778
}
7879

7980
impl AttributeInfo {

src/classloader/attribute_parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ fn parse_attribute(
9898
"LineNumberTable" => AttributeInfo::LineNumberTable,
9999
"LocalVariableTable" => AttributeInfo::LocalVariableTable,
100100
"Exceptions" => AttributeInfo::Exceptions,
101+
"StackMapTable" => AttributeInfo::StackMapTable,
101102
_ => panic!("Unknown Attribute {}", name),
102103
}
103104
}

0 commit comments

Comments
 (0)