summaryrefslogtreecommitdiffstats
path: root/test/integration/aligned_alloc.c
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2011-03-23 07:37:29 (GMT)
committerJason Evans <je@fb.com>2011-03-23 07:37:29 (GMT)
commit38d9210c464c4ad49655a4da6bc84ea4fbec83d2 (patch)
tree8998181ebe1674e5dee2c110f7ec6ec16479a48e /test/integration/aligned_alloc.c
parenteacb896c014d822cf563490d1c1f1cdc3cda24a2 (diff)
downloadjemalloc-38d9210c464c4ad49655a4da6bc84ea4fbec83d2.zip
jemalloc-38d9210c464c4ad49655a4da6bc84ea4fbec83d2.tar.gz
jemalloc-38d9210c464c4ad49655a4da6bc84ea4fbec83d2.tar.bz2
Fix error detection for ipalloc() when profiling.
sa2u() returns 0 on overflow, but the profiling code was blindly calling sa2u() and allowing the error to silently propagate, ultimately ending in a later assertion failure. Refactor all ipalloc() callers to call sa2u(), check for overflow before calling ipalloc(), and pass usize rather than size. This allows ipalloc() to avoid calling sa2u() in the common case.
Diffstat (limited to 'test/integration/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions