From 6c6a98c983c44b440ae66d2aa8f32529a9dd7bfe Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 5 Mar 2012 11:05:42 +0100 Subject: 2012-03-05 Tom de Vries * 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. --- sysdeps/generic/dl-osinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/dl-osinfo.h b/sysdeps/generic/dl-osinfo.h index 2eaab3b..548fc46 100644 --- a/sysdeps/generic/dl-osinfo.h +++ b/sysdeps/generic/dl-osinfo.h @@ -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 { -- cgit v1.1