mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-23 00:03:09 +00:00
coverity 354842 355562
This commit is contained in:
1 parent
d0c69519ee
commit
faf4c449fc
1 file changed
+2
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user