mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-10 05:13:38 +00:00
1. Fixed NULL reference crash that could occur if ILibProcessPipe metadata is NULL when fdsnapshot is called
2. Updated MacOS KVM to set metadata on child process
This commit is contained in:
@@ -190,8 +190,16 @@ char * ILibProcessPipe_Manager_OnQuery(void *chain, void *object, int fd, size_t
|
||||
if (node != NULL)
|
||||
{
|
||||
ILibProcessPipe_PipeObject *pj = (ILibProcessPipe_PipeObject*)ILibLinkedList_GetDataFromNode(node);
|
||||
*dataLen = strnlen_s(pj->metadata, 1024);
|
||||
ret = pj->metadata;
|
||||
if (pj->metadata != NULL)
|
||||
{
|
||||
*dataLen = strnlen_s(pj->metadata, 1024);
|
||||
ret = pj->metadata;
|
||||
}
|
||||
else
|
||||
{
|
||||
*dataLen = 25;
|
||||
ret = "ILibProcessPipe (unknown)";
|
||||
}
|
||||
}
|
||||
return(ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user