unify test - step 2

This commit is contained in:
iceman1001 committed 2025-03-25 10:17:42 +01:00
1 parent 875b3c44b4
commit ad292e8810
70 files changed
+272 -195

No files matched your search

+3 -3
View File
@@ -346,7 +346,7 @@ static void arg_add_t55xx_downloadlink(void *at[], uint8_t *idx, uint8_t show, u
char *r3 = (char *)calloc(r_count, sizeof(uint8_t));
if (r0 == NULL || r1 == NULL || r2 == NULL || r3 == NULL) {
PrintAndLogEx(ERR, "Memory allocation failed");
PrintAndLogEx(WARNING, "Failed to allocate memory");
free(r0);
free(r1);
free(r2);
@@ -367,7 +367,7 @@ static void arg_add_t55xx_downloadlink(void *at[], uint8_t *idx, uint8_t show, u
if (show == T55XX_DLMODE_ALL) {
char *r4 = (char *)calloc(r_count, sizeof(uint8_t));
if (r4 == NULL) {
PrintAndLogEx(ERR, "Memory allocation failed");
PrintAndLogEx(WARNING, "Failed to allocate memory");
free(r0);
free(r1);
free(r2);
@@ -3200,7 +3200,7 @@ static int CmdResetRead(const char *Cmd) {
uint16_t gotsize = g_pm3_capabilities.bigbuf_size - 1;
uint8_t *got = calloc(gotsize, sizeof(uint8_t));
if (got == NULL) {
PrintAndLogEx(WARNING, "failed to allocate memory");
PrintAndLogEx(WARNING, "Failed to allocate memory");
return PM3_EMALLOC;
}