commit | 748e130181c78893feb2a24e29e4d4ef338a1bb1 | [log] [tgz] |
---|---|---|
author | Nick Pelly <npelly@google.com> | Mon Dec 06 18:49:30 2010 -0800 |
committer | Nick Pelly <npelly@google.com> | Mon Dec 06 18:49:30 2010 -0800 |
tree | 88a2a37d4ef4c08e251ba0c92b13c8cd9834b7a7 | |
parent | 7be7f5f8563dbbd1bf45303f0d987b5b7f488c94 [diff] |
Fix out-of-bounds array access. Change-Id: I17099bd2279c7130c14dbb6f6a6618717bc8f96d
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 @@ 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;