You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to http://en.cppreference.com/w/c/memory/realloc (and many other
manuals), realloc is not supposed to zero all allocated memory, only the newly
allocated memory.
You can see the zeroing of memory here:
https://code.google.com/p/gperftools/source/browse/src/windows/override_function
s.cc#57
which only exists in the override implementation on Windows
What version of the product are you using? On what operating system?
GPerfTools 2.4
Original issue reported on code.google.com by mark.ben...@10gen.com on 21 Apr 2015 at 9:17
The text was updated successfully, but these errors were encountered:
This is actually recalloc not realloc. But it is wrong indeed.
Thanks for reporting it. If you can submit a patch for that issue that would be
great too :)
Original comment by alkondratenko on 25 Apr 2015 at 11:09
Changed title: recalloc is wrong in windows/override_functions.cc
Original issue reported on code.google.com by
mark.ben...@10gen.com
on 21 Apr 2015 at 9:17The text was updated successfully, but these errors were encountered: