http://bugs.winehq.org/show_bug.cgi?id=18067
Summary: Large blocks not reported properly to valgrind by RtlAllocateHeap Product: Wine Version: 1.1.19 Platform: Other OS/Version: other Status: NEW Keywords: download, patch, source Severity: normal Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
Found while valgrinding chromium unit tests. Here's a simple test case:
$ cat > foo.c <<_EOF_ #include <malloc.h> int main() { char *p = malloc(1000000); free(p); } _EOF_ $ i586-mingw32msvc-gcc foo.c $ valgrind --trace-children=yes wine a.exe ... ==2953== Invalid free() / delete / delete[] ==2953== at 0x6C80EDF: RtlFreeHeap dlls/ntdll/heap.c:1464
Looks like Eric missed a code path when he first added the valgrind hooks?