mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-25 07:35:40 -07:00
coverity 354842 355562
This commit is contained in:
parent
d0c69519ee
commit
faf4c449fc
1 changed files with 2 additions and 1 deletions
|
@ -257,8 +257,9 @@ void LRPCMAC(LRPContext *ctx, uint8_t *data, size_t datalen, uint8_t *cmac) {
|
|||
}
|
||||
|
||||
size_t bllen = datalen - clen;
|
||||
bllen = MIN(bllen, CRYPTO_AES128_KEY_SIZE); // coverity
|
||||
uint8_t bl[CRYPTO_AES128_KEY_SIZE] = {0};
|
||||
memcpy(bl, &data[clen], MIN(bllen, CRYPTO_AES128_KEY_SIZE));
|
||||
memcpy(bl, &data[clen], bllen);
|
||||
|
||||
// last block
|
||||
if (bllen == 16) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue