From: Kevin O'Connor Date: Tue, 11 Mar 2014 15:46:42 +0000 (-0400) Subject: smbios: Default all values to zero. X-Git-Tag: rel-1.7.5-rc1~33 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9b9c2403f9e990397c2757a922a4022cfa0c8155;p=seabios.git smbios: Default all values to zero. Make sure to initialize the entire smbios area to zero so that any field not explicitly initialized does not have random values. (It was found that the memory_error_information_handle field in smbios_type_17 was not being set.) Signed-off-by: Kevin O'Connor --- diff --git a/src/fw/smbios.c b/src/fw/smbios.c index 55c662a..0c6a5b2 100644 --- a/src/fw/smbios.c +++ b/src/fw/smbios.c @@ -522,6 +522,7 @@ smbios_setup(void) warn_noalloc(); return; } + memset(start, 0, TEMPSMBIOSSIZE); u32 nr_structs = 0, max_struct_size = 0; char *q, *p = start;