mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
2012-03-05 Tom de Vries <tom@codesourcery.com>
* sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure default stack guard is set in last bytes. * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
This commit is contained in:
parent
21bb2d2e64
commit
6c6a98c983
@ -1,3 +1,9 @@
|
||||
2012-03-05 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
* sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
|
||||
default stack guard is set in last bytes.
|
||||
* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
|
||||
|
||||
2012-03-05 Kees Cook <keescook@chromium.org>
|
||||
|
||||
* stdio-common/vfprintf.c (vfprintf): add missing errno settings.
|
||||
|
@ -30,8 +30,8 @@ _dl_setup_stack_chk_guard (void *dl_random)
|
||||
|
||||
if (dl_random == NULL)
|
||||
{
|
||||
ret.bytes[sizeof (ret) - 2] = 255;
|
||||
ret.bytes[sizeof (ret) - 3] = '\n';
|
||||
ret.bytes[sizeof (ret) - 1] = 255;
|
||||
ret.bytes[sizeof (ret) - 2] = '\n';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -84,8 +84,8 @@ _dl_setup_stack_chk_guard (void *dl_random)
|
||||
return ret.num;
|
||||
}
|
||||
# endif
|
||||
ret.bytes[filllen - 2] = 255;
|
||||
ret.bytes[filllen - 3] = '\n';
|
||||
ret.bytes[filllen] = 255;
|
||||
ret.bytes[filllen - 1] = '\n';
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user