dvyukov added a comment. Can we use __interceptor_calloc instead like in other tests? Behavior in such case will be closer to user programs as the interceptor can also contain some logic. http://reviews.llvm.org/D14918