From 9e6a33ea0a6095a140e028d55592a8100ecea58f Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 12 Dec 2017 19:26:28 +0000 Subject: [PATCH] Iniailize str so ucs2_to_utf8 won't free stack garbage. CID: 1381037 Sponsored by: Netflix --- usr.sbin/efivar/efiutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/efivar/efiutil.c b/usr.sbin/efivar/efiutil.c index 20efab54f1a3..786a1c41d499 100644 --- a/usr.sbin/efivar/efiutil.c +++ b/usr.sbin/efivar/efiutil.c @@ -125,7 +125,7 @@ efi_print_load_option(uint8_t *data, size_t datalen, int Aflag, int bflag, int u uint16_t fplen; efi_char *descr; efidp dp, edp; - char *str; + char *str = NULL; char buf[1024]; int len; void *opt;