1
0
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:
Bryan Roe
2020-10-29 14:41:55 -07:00
parent e842f641db
commit cb24703141
2 changed files with 2 additions and 33 deletions

View File

@@ -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];