On last.fm: R.I.P. MJ
BNET Business Network:
BNET
TechRepublic
ZDNet
TalkBack 1 of 1:
HeapAlloc vs. malloc?
malloc is a function whose implementation is defined by whomever wrote the C Runtime Library. In the case of Visual Studio 2005, this function wraps the Windows HeapAlloc function whenever you are running on Windows 2000 or newer. (On older OSes, it uses its own heap.) My guess is that VS 2002/2003 also wrap HeapAlloc.

Thus, for most software on Windows (at least, most relatively-new software), malloc and HeapAlloc are equivalent.

So I don't get what this guy means by malloc providing more protection.
Posted by: PB_z   Posted on: 02/28/07 You are currently: a Guest | Members login | Terms of Use

Alert moderator to an offensive message

Subscribe to this discussion via Email or RSS

HeapAlloc vs. malloc?  PB_z | 02/28/07

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement
advertisement

SmartPlanet

Click Here