diff options
| author | Jason Evans <je@fb.com> | 2014-01-29 02:02:07 (GMT) |
|---|---|---|
| committer | Jason Evans <je@fb.com> | 2014-01-29 02:09:59 (GMT) |
| commit | a184d3fcdecfaaf694029fb375d023882aea444e (patch) | |
| tree | 44c3b2e501092e2153e159c96d57c3b3d71b5240 /test/integration/aligned_alloc.c | |
| parent | 2b51a3e9e9bfebf081d25dfa92f3cd89e4a8ed73 (diff) | |
| download | jemalloc-a184d3fcdecfaaf694029fb375d023882aea444e.zip jemalloc-a184d3fcdecfaaf694029fb375d023882aea444e.tar.gz jemalloc-a184d3fcdecfaaf694029fb375d023882aea444e.tar.bz2 | |
Fix/remove flawed alignment-related overflow tests.
Fix/remove three related flawed tests that attempted to cause OOM due to
large request size and alignment constraint. Although these tests
"passed" on 64-bit systems due to the virtual memory hole, they could
pass on some 32-bit systems.
Diffstat (limited to 'test/integration/aligned_alloc.c')
| -rw-r--r-- | test/integration/aligned_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/aligned_alloc.c b/test/integration/aligned_alloc.c index 17c2151..6090014 100644 --- a/test/integration/aligned_alloc.c +++ b/test/integration/aligned_alloc.c @@ -47,10 +47,10 @@ TEST_BEGIN(test_oom_errors) #if LG_SIZEOF_PTR == 3 alignment = UINT64_C(0x4000000000000000); - size = UINT64_C(0x8400000000000001); + size = UINT64_C(0xc000000000000001); #else alignment = 0x40000000LU; - size = 0x84000001LU; + size = 0xc0000001LU; #endif set_errno(0); p = aligned_alloc(alignment, size); |
