The flag allows the user to specify a maximum allocation size that the
sanitizers will honor. Any larger allocations will return nullptr or
crash depending on allocator_may_return_null.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 40214 Build 40310: arc lint + arc unit
Event Timeline
compiler-rt/lib/asan/asan_allocator.cpp | ||
---|---|---|
288 |
SharedInitCode is also called from ReInitialize, which I think is redundant, since the common_flags wouldn't have changed (right?).
I'm not sure we want to include ASan metadata in this new limit, while we do include it for the check against kMaxAllowedMallocSize. | |
444 | I *think* we only want to check size here, but I'm not sure. @kcc Does Mozilla care about ASan metadata and alignment padding for this limit? |
why not in SharedInitCode ?
why not use Min(, kMaxAllowedMallocSize) same as you do in lsan and msan allocators?