Closed Jakuje closed 5 months ago
Fixed in https://github.com/LudovicRousseau/CCID/commit/346c3aa78debfdbd89a97e8af0c7531a118ac795
I modified your patch to use *RxLength
instead of RxLength
.
Thank you! Should have double-checked the code before pushing.
This issue was pointed out by coverity that the memmove could be called with underflow value, if we get small answer from
CCID_Receive()
. My proposal would be to add a sanity check to prevent that, but I am not that much familiar with all the code so I am open to other proposals or suggestions.