mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-07 11:03:55 +00:00
Addressed CodeQL issues
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user