[Webkit-unassigned] [Bug 29026] CRASH: fastRealloc crashes on realloc(ptr, 0)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 15 13:42:58 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29026





--- Comment #10 from Mike Belshe <mike at belshe.com>  2009-09-15 13:42:55 PDT ---
Heh - I guess I quoted the spec which allows both.  Several exist.
http://www.cplusplus.com/reference/clibrary/cstdlib/realloc/
http://msdn.microsoft.com/en-us/library/xbebcx7d(VS.71).aspx

And of course, the tcmalloc implementation currently used in WTF does this too
(see FastMalloc.cpp)

So - my point remains that we now have different ports using different
allocators that may have different return values for this case.

If you use the USE_SYSTEM_MALLOC in Webkit on mac, you'll get the mac version
of realloc() which won't crash in fastRealloc() in this case.  On the other
hand, if you don't set that env var, you'll use tcmalloc, which will :-)

Seems inconsistent, no?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list