[PATCH] D20084: [sanitizer] Initial implementation of a Hardened Allocator
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Wed May 11 10:42:20 PDT 2016
kcc added inline comments.
================
Comment at: lib/hardened_allocator/scudo_allocator.cc:331
@@ +330,3 @@
+ header.requested_size = size;
+ header.salt = static_cast<u16>(prng.Next());
+ chunk->StoreHeader(&header, nullptr);
----------------
glider wrote:
> Is the salt value used anywhere? If not, what's its point?
AFIACT, The salt bits (among others) are used to compute the checksum.
http://reviews.llvm.org/D20084
More information about the llvm-commits
mailing list