Carlos Alberto Fernandez

phNfcLib_Initialization.c Bug

Discussion created by Carlos Alberto Fernandez on Apr 29, 2020
Latest reply on Apr 30, 2020 by Ricardo Zamora

Hi, I found the following bug: the gphNfcLib_Key variable are defined with a size of 6, but in the phNfcLib_Init when call the:

PH_CHECK_NFCLIB_INIT_FCT(wStatus, phKeyStore_SetKey(&gphNfcLib_Params.sKeyStore, 1, 0, 0x6, &gphNfcLib_Key[0], 0));


This function copy in this variable 12 bytes!. 


the Solution for this is define gphNfcLib_Key with a size of 12.


Please take note,