summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnpublished <unpublished@gmx.net>2017-02-05 09:53:03 (GMT)
committerUnpublished <unpublished2@gmx.net>2017-02-05 11:13:31 (GMT)
commit7fe6a18b732bd0b29e195bb4f5bfe80020ebb7cd (patch)
tree063a6595c63fe753f1bdde4049076d5e39e7d23b
parent5652d3d173589244a5deeb62e1091bea61a32497 (diff)
downloadandroid_frameworks_opt_net_wifi-7fe6a18b732bd0b29e195bb4f5bfe80020ebb7cd.zip
android_frameworks_opt_net_wifi-7fe6a18b732bd0b29e195bb4f5bfe80020ebb7cd.tar.gz
android_frameworks_opt_net_wifi-7fe6a18b732bd0b29e195bb4f5bfe80020ebb7cd.tar.bz2
Revert "wifinative jni: check array length to prevent stack overflow"
This partially reverts commit bebdc4a3ae5000ac26c16071f26557eb7d8278d8. Change-Id: I1ad9ab51c4cfbe634fbccdc07f4910ea696ff7a1
-rw-r--r--service/jni/com_android_server_wifi_WifiNative.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/service/jni/com_android_server_wifi_WifiNative.cpp b/service/jni/com_android_server_wifi_WifiNative.cpp
index a387a0c..3242888 100644
--- a/service/jni/com_android_server_wifi_WifiNative.cpp
+++ b/service/jni/com_android_server_wifi_WifiNative.cpp
@@ -899,13 +899,6 @@ static jboolean android_net_wifi_setHotlist(
return false;
}
- if (params.num_bssid >
- static_cast<int>(sizeof(params.ap) / sizeof(params.ap[0]))) {
- ALOGE("setHotlist array length is too long");
- android_errorWriteLog(0x534e4554, "31856351");
- return false;
- }
-
for (int i = 0; i < params.num_bssid; i++) {
JNIObject<jobject> objAp = helper.getObjectArrayElement(array, i);