phNfcLib_Initialization.c Bug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

phNfcLib_Initialization.c Bug

575 Views
cf_isys
Contributor I

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,

Thanks,

Labels (2)
0 Kudos
1 Reply

499 Views
nxf58474
NXP Employee
NXP Employee

Hi,

 

Hope you are doing well. I'll check your report and verify it with the team.

 

Thanks and Regards,

Ricardo

0 Kudos