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 (cherry picked from commit c67cc6ad2addddcb7185a33b08d27290ce54e350) Change-Id: I2031917368ca85da2c9e58b990ddc11981655e08
Loading
Please sign in to comment