1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Added missing bufferLen check

This commit is contained in:
Bryan Roe
2022-03-23 13:15:51 -07:00
parent 288acf0ec0
commit d6e5425b57

View File

@@ -872,6 +872,10 @@ ILibTransport_DoneState ILibDuktape_MeshAgent_RemoteDesktop_KVM_WriteSink(char *
}
#endif
if (bufferLen > 4 && ntohs(((unsigned short*)buffer)[0]) == MNG_DEBUG)
{
Duktape_Console_LogEx(ptrs->ctx, ILibDuktape_LogType_Info1, "%s", buffer + 4);
}
if (ptrs->stream != NULL)
{