aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude
diff options
context:
space:
mode:
authorLaurent Licour <laurent@licour.com>2010-07-07 20:53:22 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2010-07-07 20:53:22 +0200
commit5c558dba97becf9d56a26a17f0cff96f780cf67d (patch)
tree3d13982fe2febc996da3b4e4a55cf07ac44e7021 /com32/gplinclude
parent62926623081dd71e8cb4803375b70191df5592fe (diff)
downloadsyslinux-5c558dba97becf9d56a26a17f0cff96f780cf67d.tar.gz
syslinux-5c558dba97becf9d56a26a17f0cff96f780cf67d.tar.xz
syslinux-5c558dba97becf9d56a26a17f0cff96f780cf67d.zip
DMI: Fixing memory mgmnt in dmi_memory_module_types
In some case, dmi_memory_module_types could read the entire memory as a result of a bogus snprintf usage.
Diffstat (limited to 'com32/gplinclude')
-rw-r--r--com32/gplinclude/dmi/dmi_memory.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/com32/gplinclude/dmi/dmi_memory.h b/com32/gplinclude/dmi/dmi_memory.h
index 47ad7fcd..4d0ad442 100644
--- a/com32/gplinclude/dmi/dmi_memory.h
+++ b/com32/gplinclude/dmi/dmi_memory.h
@@ -66,12 +66,12 @@ void dmi_memory_device_size(uint16_t code, char *size);
const char *dmi_memory_device_form_factor(uint8_t code);
void dmi_memory_device_set(uint8_t code, char *set);
const char *dmi_memory_device_type(uint8_t code);
-void dmi_memory_device_type_detail(uint16_t code, char *type_detail);
+void dmi_memory_device_type_detail(uint16_t code, char *type_detail, int sizeof_type_detail);
void dmi_memory_device_speed(uint16_t code, char *speed);
-void dmi_memory_module_connections(uint8_t, char *);
+void dmi_memory_module_connections(uint8_t, char *, int);
void dmi_memory_module_speed(uint8_t, char *);
-void dmi_memory_module_types(uint16_t, const char *, char *);
-void dmi_memory_module_size(uint8_t, char *);
+void dmi_memory_module_types(uint16_t, const char *, char *, int);
+void dmi_memory_module_size(uint8_t, char *, int);
void dmi_memory_module_error(uint8_t, const char *, char *);
#endif