From b2a99c749723a8ef24a64796c852c107fcba54fe Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Fri, 12 Jun 2020 16:32:39 -0700 Subject: [PATCH] Added NULL/Canary check on metadata update method --- microstack/ILibProcessPipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/microstack/ILibProcessPipe.c b/microstack/ILibProcessPipe.c index 9e525e1..87cf359 100644 --- a/microstack/ILibProcessPipe.c +++ b/microstack/ILibProcessPipe.c @@ -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);