1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-07 11:03:55 +00:00

Addressed CodeQL issues

This commit is contained in:
Bryan Roe
2020-07-08 22:18:54 -07:00
parent e1377cd74f
commit c390676809
2 changed files with 2 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
unsigned size;
{
(void)opaque;
return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
return sizeof(uInt) > 2 ? (voidpf)malloc((size_t)items * (size_t)size) :
(voidpf)calloc(items, size);
}

View File

@@ -375,7 +375,7 @@ duk_ret_t ILibDuktape_RSA_Sign(duk_context *ctx)
unsigned long err = ERR_get_error();
char *reason = (char*)ERR_reason_error_string(err);
RSA_free(r);
return(ILibDuktape_Error(ctx, "RSA_sign() Error: (%d, %s)", err, reason));
return(ILibDuktape_Error(ctx, "RSA_sign() Error: (%lu, %s)", err, reason));
}
RSA_free(r);
return(1);