Skip to content

recalloc is wrong in windows/override_functions.cc #682

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions