unify test - step 2
This commit is contained in:
1 parent
875b3c44b4
commit
ad292e8810
70 files changed
+272
-195
No files matched your search
@@ -364,7 +364,7 @@ static void asn1_tag_dump_object_id(const struct tlv *tlv, const struct asn1_tag
|
||||
|
||||
bool asn1_tag_dump(const struct tlv *tlv, int level, bool *candump) {
|
||||
if (tlv == NULL) {
|
||||
PrintAndLogEx(FAILED, "NULL\n");
|
||||
PrintAndLogEx(WARNING, "tlv is NULL\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ int ecdsa_asn1_get_signature(uint8_t *signature, size_t signaturelen, uint8_t *r
|
||||
|
||||
uint8_t *p = calloc(sizeof(uint8_t), signaturelen);
|
||||
if (p == NULL) {
|
||||
PrintAndLogEx(WARNING, "Failed to allocate memory");
|
||||
return PM3_EMALLOC;
|
||||
}
|
||||
|
||||
@@ -253,6 +254,7 @@ int asn1_selftest(void) {
|
||||
|
||||
uint8_t *d = calloc(n, sizeof(uint8_t));
|
||||
if (d == NULL) {
|
||||
PrintAndLogEx(WARNING, "Failed to allocate memory");
|
||||
return PM3_EMALLOC;
|
||||
}
|
||||
int len = 0;
|
||||
|
||||
Reference in new issue
Block a user