mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-06 00:13:33 +00:00
Addressed IOActive issues:
1. Remapped ASTRING to UTF8String 2. Added size check
This commit is contained in:
@@ -225,6 +225,7 @@ void ILibDuktape_Digest_CalculateNonce(duk_context *ctx, void *heapptr, long lon
|
||||
char temp[33];
|
||||
if (expiration == 0)
|
||||
{
|
||||
if (opaqueLen != 16) { ILibDuktape_Error(ctx, "Invalid opaque specified"); return; }
|
||||
char tmp[8];
|
||||
util_hexToBuf(opaque, opaqueLen, tmp);
|
||||
expiration = ((long long*)tmp)[0];
|
||||
|
||||
Reference in New Issue
Block a user