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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user