coverity fix CID #370724

This commit is contained in:
iceman1001 2022-01-11 08:56:59 +01:00
commit c754122a74

View file

@ -267,7 +267,7 @@ static size_t emv_pk_write_str(char *out, size_t outlen, const char *str) {
char *emv_pk_dump_pk(const struct emv_pk *pk) { char *emv_pk_dump_pk(const struct emv_pk *pk) {
size_t outpos = 0; size_t outpos = 0;
size_t outsize = 1024; // should be enough size_t outsize = 1048; // should be enough
char *out = calloc(1, outsize); // should be enough char *out = calloc(1, outsize); // should be enough
if (!out) if (!out)
return NULL; return NULL;