bounds checking by doname() and xname()
Try harder to prevent buffer overflow when formatting objects. I don't have any test cases where overflow has been happening so don't really know whether this works reliably. And it doesn't try to check prefix construction by doname(). [Yet?]
This commit is contained in:
@@ -882,9 +882,8 @@ const struct instance_globals_w g_init_w = {
|
||||
UNDEFINED_PTR, /* wportal */
|
||||
/* new */
|
||||
{ wdmode_traditional, NO_COLOR }, /* wsettings */
|
||||
|
||||
TRUE, /* havestate*/
|
||||
IVMAGIC /* w_magic used to validate that structure layout has been preserved */
|
||||
IVMAGIC /* w_magic to validate that structure layout has been preserved */
|
||||
};
|
||||
|
||||
const struct instance_globals_x g_init_x = {
|
||||
@@ -895,6 +894,8 @@ const struct instance_globals_x g_init_x = {
|
||||
/* mkmaze.c */
|
||||
UNDEFINED_VALUE, /* xmin */
|
||||
UNDEFINED_VALUE, /* xmax */
|
||||
/* objnam.c */
|
||||
NULL, /* xnamep */
|
||||
/* sp_lev.c */
|
||||
UNDEFINED_VALUE, /* xstart */
|
||||
UNDEFINED_VALUE, /* xsize */
|
||||
|
||||
Reference in New Issue
Block a user