提交 15890c38 编写于 作者: M mullan

8011896: Add check for invalid offset for new AccessControlContext isAuthorized field

Reviewed-by: acorn
上级 4eb202a8
......@@ -2819,8 +2819,10 @@ oop java_security_AccessControlContext::create(objArrayHandle context, bool isPr
result->obj_field_put(_context_offset, context());
result->obj_field_put(_privilegedContext_offset, privileged_context());
result->bool_field_put(_isPrivileged_offset, isPrivileged);
// whitelist AccessControlContexts created by the JVM.
result->bool_field_put(_isAuthorized_offset, true);
// whitelist AccessControlContexts created by the JVM if present
if (_isAuthorized_offset != -1) {
result->bool_field_put(_isAuthorized_offset, true);
}
return result;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册