summaryrefslogtreecommitdiff
path: root/errlog.c
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2024-02-17 17:35:37 +0000
committerSteve McIntyre <steve@einval.com>2024-02-17 17:35:37 +0000
commita075e58606b9affb6dfb176c71caab816737a981 (patch)
treecb517fcf059f8d9d9dd7f6860a2d77d75ddc4142 /errlog.c
parent2dd2f7600d41253fe621b8d040ab57f0c202d71b (diff)
downloadefi-boot-shim-upstream.tar.gz
efi-boot-shim-upstream.zip
New upstream version 15.8upstream/15.8upstream
Diffstat (limited to 'errlog.c')
-rw-r--r--errlog.c3
1 files changed, 3 insertions, 0 deletions
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)