[Webkit-unassigned] [Bug 29026] CRASH: fastRealloc crashes on realloc(ptr, 0)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 9 11:17:20 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29026
--- Comment #6 from Mike Belshe <mike at belshe.com> 2009-09-09 11:17:19 PDT ---
(In reply to comment #5)
> The entire reason that the "try" version of the functions exist is as a way for
> the caller to say "I'm ok with getting 0 back from this". It makes it clear
> that the author has considered this case and that the code accommodates this.
> The same cannot be said about the uses of "fastRealloc" in general.
That's not what the comments say. The comment in fastmalloc says, "These
functions call CRASH() if an allocation fails."
Thats a subtle, but different meaning from what you suggest because in this
case, the allocation did not fail. We can change it, I guess.
--
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