mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-16 00:03:45 +00:00
Added NULL/Canary check on metadata update method
This commit is contained in:
@@ -1279,6 +1279,7 @@ void ILibProcessPipe_Process_ResetMetadata(ILibProcessPipe_Process p, char *meta
|
||||
{
|
||||
char tmp[1024];
|
||||
ILibProcessPipe_Process_Object *j = (ILibProcessPipe_Process_Object*)p;
|
||||
if (j == NULL || !ILibMemory_CanaryOK(j)) { return; }
|
||||
|
||||
sprintf_s(tmp, sizeof(tmp), "(stdout) %s", metadata);
|
||||
ILibProcessPipe_Pipe_ResetMetadata(j->stdOut, tmp);
|
||||
|
||||
Reference in New Issue
Block a user