mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 22:30:13 +00:00
[hwasan] Fix tests when vm.overcommit_memory=1.
Remove an invalid check from sizes.cpp that only passes when overcommit is disabled. Fixes PR48274. Differential Revision: https://reviews.llvm.org/D91999
This commit is contained in:
parent
c74b427cb2
commit
237b024b06
@ -49,8 +49,6 @@ int main(int argc, char **argv) {
|
||||
if (!untag_strcmp(argv[1], "malloc")) {
|
||||
void *p = malloc(MallocSize);
|
||||
assert(!p);
|
||||
p = malloc(kMaxAllowedMallocSize - kChunkHeaderSize);
|
||||
assert(!p);
|
||||
} else if (!untag_strcmp(argv[1], "calloc")) {
|
||||
// Trigger an overflow in calloc.
|
||||
size_t size = std::numeric_limits<size_t>::max();
|
||||
|
Loading…
Reference in New Issue
Block a user