[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] hvmloader: Avoid bogus use of NULL pointer.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1185890985 -3600
# Node ID 7c5c3aa858ccf47bbaa119d7f688854a762e662e
# Parent  66055f773d19c8026708ecd7e6d5c488ad3a5766
hvmloader: Avoid bogus use of NULL pointer.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/firmware/hvmloader/smbios.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 66055f773d19 -r 7c5c3aa858cc tools/firmware/hvmloader/smbios.c
--- a/tools/firmware/hvmloader/smbios.c Tue Jul 31 11:37:27 2007 +0100
+++ b/tools/firmware/hvmloader/smbios.c Tue Jul 31 15:09:45 2007 +0100
@@ -169,7 +169,7 @@ hvm_write_smbios_tables(void)
     /* temporary variables used to build up Xen version string */
     char *p = NULL; /* points to next point of insertion */
     unsigned len = 0; /* length of string already composed */
-    char *tmp = NULL; /* holds result of itoa() */
+    char tmp[16]; /* holds result of itoa() */
     unsigned tmp_len; /* length of next string to add */
 
     hypercall_xen_version(XENVER_guest_handle, uuid);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.