1
0
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:
Bryan Roe
2020-06-12 16:32:39 -07:00
parent 04e7fc85df
commit b2a99c7497

View File

@@ -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);