HomePhabricator

[AddressSanitizer] [Windows] Fix HeapReAlloc and _recalloc bugs in…

Authored by mcgov on Apr 29 2019, 1:26 PM.

Description

[AddressSanitizer] [Windows] Fix HeapReAlloc and _recalloc bugs in asan_malloc_win.cc

HeapReAlloc should allow for 0 sized reallocations without freeing the memory block provided by the user.

_recalloc previously did not zero new memory after reallocation.
https://reviews.llvm.org/D61268

llvm-svn: 359498

Details

Committed
mcgovApr 29 2019, 1:26 PM
Parents
rG6da0989cc4c1: [UpdateTestChecks] Allow Lbegin_func without a leading period
Branches
Unknown
Tags
Unknown