mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-12 18:25:07 +08:00
coverity 226411
This commit is contained in:
parent
8416bdb485
commit
ed4cdc8b75
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,8 @@ void reverse_arraycopy(uint8_t *arr, uint8_t *dest, size_t len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void printarr(const char *name, uint8_t *arr, int len) {
|
void printarr(const char *name, uint8_t *arr, int len) {
|
||||||
|
if (name == NULL || arr == NULL) return;
|
||||||
|
|
||||||
int cx, i;
|
int cx, i;
|
||||||
size_t outsize = 40 + strlen(name) + len * 5;
|
size_t outsize = 40 + strlen(name) + len * 5;
|
||||||
char *output = calloc(outsize, sizeof(char));
|
char *output = calloc(outsize, sizeof(char));
|
||||||
|
|
Loading…
Reference in a new issue