mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
coverity cid #386958 - tainted value
This commit is contained in:
parent
04b86073b2
commit
06ccaf555c
1 changed files with 7 additions and 0 deletions
|
@ -365,6 +365,13 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t g_idx = atoi(argv[2]);
|
uint8_t g_idx = atoi(argv[2]);
|
||||||
|
|
||||||
|
// -2 (zero index and last item is NULL);
|
||||||
|
if (g_idx > ARRAYLEN(generators) - 2) {
|
||||||
|
printf("generator index is out-of-range\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
uint64_t start_time = atoi(argv[3]);
|
uint64_t start_time = atoi(argv[3]);
|
||||||
|
|
||||||
const bool support_aesni = platform_aes_hw_available();
|
const bool support_aesni = platform_aes_hw_available();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue