commit | 72c3fc7e841b8e592291e988609bbfd6bfa18ebc | [log] [tgz] |
---|---|---|
author | fang.x.chen <fang.x.chen@sonymobile.com> | Mon Nov 07 12:31:10 2016 +0900 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Jul 04 23:24:38 2017 -0700 |
tree | 85979f031b678bd82f50847b178afd7b8a40846f | |
parent | a2c0e578e9dec2d80e550765286e655808798117 [diff] |
Fix native crash in nfc_ncif_proc_activate The destination of memcpy is allocated with a predetermined maximum length, but in some cases the length of information being copied is greater than the maximum length of the destination. This is the root cause of crash. Add length check before memcpy to avoid memory overflow Test: Repeat reading and writing tag Bug: 33434992 Bug: 32688507 Change-Id: I09ee3c734e9be38a35b1d48679d74e42e0432d78 (cherry picked from commit 09cb3b3dc46c8bab51346a4163b130857d806418) (cherry picked from commit 08ecbb211cdbd37bc9c3293dae74fbd569eb0bc4)
#NFC_NCIHAL_libnfc-nci
####Git Repository
DESCRIPTION | CHECKOUT COMMAND |
---|---|
NFC_NCIHAL_libnfc-nci | git clone https://github.com/NXPNFCProject/NFC_NCIHAL_libnfc-nci.git |
####Supported Versions on "master" Branch
Android Version | NXP Release | NXP Tag |
---|---|---|
android-5.0.0_r1/android5.1.0_r1 | 3.5.0_L (PN547C2/PN548C2) | NFC_NCIHALx_AR0F.3.5.0_L_OpnSrc |
####Supported Versions on "br_android_ncihalx_m" Branch
Android Version | NXP Release | NXP Tag |
---|---|---|
android-6.0.0_r1 | 4.2.0_M (PN547C2/PN548C2) | NFC_NCIHALx_AR0F.4.2.0_M_OpnSrc |
android-6.0.0_r1 | 4.3.0_M (PN547C2/PN548C2) | NFC_NCIHALx_AR0F.4.3.0_M_OpnSrc |
android-6.0.1_r17 | 4.5.0_M (PN551/PN548C2) | NFC_NCIHALx_AR3C.4.5.0_M_OpnSrc |
android-6.0.1_r17 | 4.7.0_M (PN553) | NFC_NCIHALx_ARC0.4.7.0_M_OpnSrc |
android-6.0.1_r17 | 4.8.0_M (PN551/PN548C2) | NFC_NCIHALx_AR3C.4.8.0_M_OpnSrc |
####Supported Versions on "br_android_ncihalx_n" Branch
Android Version | NXP Release | NXP Tag |
---|---|---|
android-7.0.0_r1 | 7.0.3_N (PN548C2/PN551) | NFC_NCIHALx_AR3C.7.0.3_N_OpnSrc |
android-7.0.0_r4 | 7.0.4_N (PN553) | NFC_NCIHALx_ARC0.7.0.4_N_OpnSrc |
android-7.0.0_r12 | 7.1.0_N (PN548C2/PN551/PN553) | NFC_NCIHALx_ARFC.7.1.0_N_OpnSrc |
android-7.0.0_r12 | 7.2.0_N (PN553) | NFC_NCIHALx_ARC0.7.2.0_N_OpnSrc |
android-7.0.0_r12 | 7.3.0_N (PN553) | NFC_NCIHALx_ARC0.7.3.0_N_OpnSrc |