mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-17 16:53:13 +00:00
Added canary check to mitigate crash on linux
This commit is contained in:
@@ -496,11 +496,17 @@ void ILibProcessPipe_Manager_OnPostSelect(void* object, int slct, fd_set *readse
|
|||||||
while(node != NULL && (j = (ILibProcessPipe_PipeObject*)ILibLinkedList_GetDataFromNode(node)) != NULL)
|
while(node != NULL && (j = (ILibProcessPipe_PipeObject*)ILibLinkedList_GetDataFromNode(node)) != NULL)
|
||||||
{
|
{
|
||||||
nextNode = ILibLinkedList_GetNextNode(node);
|
nextNode = ILibLinkedList_GetNextNode(node);
|
||||||
|
if (ILibMemory_CanaryOK(j))
|
||||||
|
{
|
||||||
if (FD_ISSET(j->mPipe_ReadEnd, readset) != 0)
|
if (FD_ISSET(j->mPipe_ReadEnd, readset) != 0)
|
||||||
{
|
{
|
||||||
ILibProcessPipe_Process_ReadHandler(j);
|
ILibProcessPipe_Process_ReadHandler(j);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ILibLinkedList_Remove(node);
|
||||||
|
}
|
||||||
node = nextNode;
|
node = nextNode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user