Date: Tue, 12 Dec 2017 19:26:28 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326805 - head/usr.sbin/efivar Message-ID: <201712121926.vBCJQSuR026427@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Tue Dec 12 19:26:28 2017 New Revision: 326805 URL: https://svnweb.freebsd.org/changeset/base/326805 Log: Iniailize str so ucs2_to_utf8 won't free stack garbage. CID: 1381037 Sponsored by: Netflix Modified: head/usr.sbin/efivar/efiutil.c Modified: head/usr.sbin/efivar/efiutil.c ============================================================================== --- head/usr.sbin/efivar/efiutil.c Tue Dec 12 19:26:24 2017 (r326804) +++ head/usr.sbin/efivar/efiutil.c Tue Dec 12 19:26:28 2017 (r326805) @@ -125,7 +125,7 @@ efi_print_load_option(uint8_t *data, size_t datalen, i uint16_t fplen; efi_char *descr; efidp dp, edp; - char *str; + char *str = NULL; char buf[1024]; int len; void *opt;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712121926.vBCJQSuR026427>