From a075e58606b9affb6dfb176c71caab816737a981 Mon Sep 17 00:00:00 2001 From: Steve McIntyre Date: Sat, 17 Feb 2024 17:35:37 +0000 Subject: New upstream version 15.8 --- errlog.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'errlog.c') diff --git a/errlog.c b/errlog.c index cc6a89f5..3c5e0af8 100644 --- a/errlog.c +++ b/errlog.c @@ -32,6 +32,9 @@ VLogError(const char *file, int line, const char *func, const CHAR16 *fmt, ms_va_list args2; CHAR16 **newerrs; + if (file == NULL || func == NULL || fmt == NULL) + return EFI_INVALID_PARAMETER; + newerrs = ReallocatePool(errs, (nerrs + 1) * sizeof(*errs), (nerrs + 3) * sizeof(*errs)); if (!newerrs) -- cgit v1.2.3