summaryrefslogtreecommitdiff
path: root/errlog.c
diff options
context:
space:
mode:
authorBastien Roucariès <rouca@debian.org>2024-05-06 19:17:23 +0000
committerBastien Roucariès <rouca@debian.org>2024-05-06 19:17:23 +0000
commit0d1d760b90dfe26145b7c4e4cd0de55117bcdbbb (patch)
treea66ff512cd9be70de19d8983a2a04b9a1d03da6b /errlog.c
parentee3097c3f96727fdb41e36d93b6c957d281da97e (diff)
parenta075e58606b9affb6dfb176c71caab816737a981 (diff)
downloadefi-boot-shim-0d1d760b90dfe26145b7c4e4cd0de55117bcdbbb.tar.gz
efi-boot-shim-0d1d760b90dfe26145b7c4e4cd0de55117bcdbbb.zip
Merge tag 'upstream/15.8' into buster/updates
Upstream version 15.8
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)