Hi,
sorry for the late repy. I was not notified of your reply and then I forgot about this thread a bit....
My question is not so much about the example but more about how the method 'phalVca_IsoSelect()' is to be used. I took a closer look at the code and think that a buffer overflow is possible in the method 'phalVca_Sw_IsoSelect()' (in file 'phalVca_Sw.c'), which is called from 'phalVca_IsoSelect()'.
My concerns is that 'pFCI' will overflow if the file 31 of a DESFire is larger than the buffer behind 'pFCI'. The memcpy is wrong in my opinion without a prior check of the buffer size.
"NFC Reader Library v06.11.00 for CLRC663 including all software examples"; File 'phalVca_Sw.c'; line 735-737
/* FCI contains contents of FileID 31 of the DF */
memcpy(pFCI, &pRecv[0], wRxlen-2);
*pwFCILen = wRxlen - 2;