Skip to content
Permalink
Browse files
8266918: merge_stack in check_code.c add NULL check
Reviewed-by: rschmelter, clanger
  • Loading branch information
MBaesken committed Jun 8, 2021
1 parent 8105478 commit 00c88f79b30d7867be4a66317b90b9ba7e947f4f
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/java.base/share/native/libverify/check_code.c
@@ -3244,6 +3244,7 @@ merge_stack(context_type *context, unsigned int from_inumber,
jboolean change = JNI_FALSE;
for (old = stack, new = new_stack; old != NULL;
old = old->next, new = new->next) {
assert(new != NULL);
if (!isAssignableTo(context, new->item, old->item)) {
change = JNI_TRUE;
break;

1 comment on commit 00c88f7

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 00c88f7 Jun 8, 2021

Please sign in to comment.