summaryrefslogtreecommitdiffstats
path: root/jni/com_android_nfc.cpp
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2010-12-06 18:49:30 -0800
committerNick Pelly <npelly@google.com>2010-12-06 18:49:30 -0800
commit748e130181c78893feb2a24e29e4d4ef338a1bb1 (patch)
tree88a2a37d4ef4c08e251ba0c92b13c8cd9834b7a7 /jni/com_android_nfc.cpp
parent7be7f5f8563dbbd1bf45303f0d987b5b7f488c94 (diff)
downloadpackages_apps_nfc-748e130181c78893feb2a24e29e4d4ef338a1bb1.zip
packages_apps_nfc-748e130181c78893feb2a24e29e4d4ef338a1bb1.tar.gz
packages_apps_nfc-748e130181c78893feb2a24e29e4d4ef338a1bb1.tar.bz2
Fix out-of-bounds array access.
Change-Id: I17099bd2279c7130c14dbb6f6a6618717bc8f96d
Diffstat (limited to 'jni/com_android_nfc.cpp')
-rw-r--r--jni/com_android_nfc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/jni/com_android_nfc.cpp b/jni/com_android_nfc.cpp
index 0318577..ffdada7 100644
--- a/jni/com_android_nfc.cpp
+++ b/jni/com_android_nfc.cpp
@@ -417,7 +417,7 @@ jintArray nfc_jni_get_technology_tree(JNIEnv* e, phNfc_eRemDevType_t type, uint8
case 0x88:
case 0x98:
case 0xB8:
- techList = e->NewIntArray(2);
+ techList = e->NewIntArray(3);
techItems = e->GetIntArrayElements(techList, NULL);
techItems[0] = TARGET_TYPE_MIFARE_CLASSIC;
techItems[1] = TARGET_TYPE_ISO14443_3A;