From a582405ccdce9b5feabedffc815a58024d314167 Mon Sep 17 00:00:00 2001 From: Theresa Mammarella Date: Tue, 29 Oct 2024 10:50:51 -0400 Subject: [PATCH] Reset errorDetailCode before bytecode verification j9rtv_verifyArguments expects J9BytecodeVerificationData:errorDetailCode to be reset for each class. The error may be processed incorrectly in j9bcv_createVerifyErrorString if the errorDetailCode is kept from a previously verified class. Signed-off-by: Theresa Mammarella --- runtime/bcverify/bcverify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/bcverify/bcverify.c b/runtime/bcverify/bcverify.c index 2fedd70011d..df1382b7ba1 100644 --- a/runtime/bcverify/bcverify.c +++ b/runtime/bcverify/bcverify.c @@ -2427,6 +2427,7 @@ j9bcv_verifyBytecodes (J9PortLibrary * portLib, J9Class * clazz, J9ROMClass * ro verifyData->romClass = romClass; verifyData->errorPC = 0; + verifyData->errorDetailCode = 0; verifyData->romClassInSharedClasses = j9shr_Query_IsAddressInCache(verifyData->javaVM, romClass, romClass->romSize);