projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51431d2
)
hdt: Avoid memory corruption on menu summary
author
Erwan Velu
<erwanaliasr1@gmail.com>
Thu, 22 Sep 2011 20:44:53 +0000
(22:44 +0200)
committer
Erwan Velu
<erwanaliasr1@gmail.com>
Thu, 22 Sep 2011 20:44:53 +0000
(22:44 +0200)
During CPU's capabilites computation, let's sure the buffer we manage is
big enought....
com32/hdt/hdt-menu-summary.c
patch
|
blob
|
history
diff --git
a/com32/hdt/hdt-menu-summary.c
b/com32/hdt/hdt-menu-summary.c
index
ad87c29
..
cef7e69
100644
(file)
--- a/
com32/hdt/hdt-menu-summary.c
+++ b/
com32/hdt/hdt-menu-summary.c
@@
-52,8
+52,7
@@
void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware)
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;
- char features[SUBMENULEN + 1];
- memset(features, 0, sizeof(features));
+ char features[255]={0};
if (hardware->dmi.processor.thread_count != 0)
sprintf(buffer, ", %d thread", hardware->dmi.processor.thread_count);
else