From aff4aaeabf406044e90954593b3d378fc088020a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 15 Oct 2016 18:54:56 +0200 Subject: [PATCH] Change the garbage value to 0xdb If that garbage value becomes the LSB of a pointer, the pointer is more likely to be unaligned, an trigger more bugs. --- src/libsodium/sodium/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index c9f11baf..27cd04cf 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -33,7 +33,7 @@ #endif #define CANARY_SIZE 16U -#define GARBAGE_VALUE 0xd0 +#define GARBAGE_VALUE 0xdb #ifndef MAP_NOCORE # define MAP_NOCORE 0