mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-25 23:29:55 +00:00
8139150: ClassVerifier frees exception message while it's still in use
Remove ResourceMark in StackMapReader::parse_verification_type() to avoid freeing of error message. Reviewed-by: zmajo, dcubed, hseigel
This commit is contained in:
parent
9bb4c7872b
commit
7ca0abe7ee
@ -186,7 +186,6 @@ VerificationType StackMapReader::parse_verification_type(u1* flags, TRAPS) {
|
||||
u2 offset = _stream->get_u2(THREAD);
|
||||
if (offset >= _code_length ||
|
||||
_code_data[offset] != ClassVerifier::NEW_OFFSET) {
|
||||
ResourceMark rm(THREAD);
|
||||
_verifier->class_format_error(
|
||||
"StackMapTable format error: bad offset for Uninitialized");
|
||||
return VerificationType::bogus_type();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user