diff options
-rw-r--r-- | apex/apex_manifest.json | 2 | ||||
-rwxr-xr-x | service/uci/jni/UwbEventManager.cpp | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/apex/apex_manifest.json b/apex/apex_manifest.json index 88baf791..39fe86f9 100644 --- a/apex/apex_manifest.json +++ b/apex/apex_manifest.json @@ -1,5 +1,5 @@ { "name": "com.android.uwb", - "version": 339990000 + "version": 330400000 } diff --git a/service/uci/jni/UwbEventManager.cpp b/service/uci/jni/UwbEventManager.cpp index e670f7a5..487769fc 100755 --- a/service/uci/jni/UwbEventManager.cpp +++ b/service/uci/jni/UwbEventManager.cpp @@ -291,6 +291,12 @@ void UwbEventManager::onMulticastListUpdateNotificationReceived( return; } + if (multicast_list_ntf->no_of_controlees > MAX_NUM_CONTROLLEES) { + JNI_TRACE_E("%s: no Of Controlees %d exceeded max allowed: %d ", fn, + multicast_list_ntf->no_of_controlees, MAX_NUM_CONTROLLEES); + return; + } + jintArray controleeMacAddressArray = env->NewIntArray(multicast_list_ntf->no_of_controlees); jlongArray subSessionIdArray = |