Skip to content

Commit 732841e

Browse files
Merge "Add check for valid AIBinder_Class_setTransactionCodeToFunctionNameMap" into main am: 4811398
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3287261 Change-Id: I47befaaf63ed5593171e539627a2319a92a59f2d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2 parents a346e69 + 4811398 commit 732841e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libs/binder/ndk/include_cpp/android/binder_interface_utils.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ AIBinder_Class* ICInterface::defineClass(const char* interfaceDescriptor,
299299

300300
#if defined(__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__) || __ANDROID_API__ >= 36
301301
if API_LEVEL_AT_LEAST (36, 202504) {
302-
if (codeToFunction != nullptr) {
302+
if (codeToFunction != nullptr &&
303+
(&AIBinder_Class_setTransactionCodeToFunctionNameMap != nullptr)) {
303304
AIBinder_Class_setTransactionCodeToFunctionNameMap(clazz, codeToFunction,
304305
functionCount);
305306
}

0 commit comments

Comments
 (0)