8064335: Null pointer dereference in hotspot/src/share/vm/classfile/verifier.cpp

Use correct CHECK macro in call to load_class()

Reviewed-by: coleenp, lfoltan, gziemski
This commit is contained in:
Harold Seigel 2014-12-30 12:59:20 -05:00
parent 0efeffc5e2
commit 5b8ee4c102

View File

@ -2477,8 +2477,7 @@ void ClassVerifier::verify_invoke_init(
// of the current class.
VerificationType objectref_type = new_class_type;
if (name_in_supers(ref_class_type.name(), current_class())) {
Klass* ref_klass = load_class(
ref_class_type.name(), CHECK_VERIFY(this));
Klass* ref_klass = load_class(ref_class_type.name(), CHECK);
Method* m = InstanceKlass::cast(ref_klass)->uncached_lookup_method(
vmSymbols::object_initializer_name(),
cp->signature_ref_at(bcs->get_index_u2()),