[Webkit-unassigned] [Bug 19287] return value of malloc() is not checked in npruntime.cpp
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 15 06:20:39 PST 2008
https://bugs.webkit.org/show_bug.cgi?id=19287
------- Comment #8 from darin at apple.com 2008-12-15 06:20 PDT -------
(In reply to comment #7)
> But according to another bug thread (bug #20566, comment #1) we should really
> call NPN_MemAlloc but it doesn't work on Mac.
That NPN_MemAlloc comment in NP_jsobject.cpp is long-obsolete. That comment was
written back when this code was in JavaScriptCore and NPN_MemAlloc was in
WebKit. But now both the code and the NPN_MemAlloc function are in WebCore. So
that issues is not an obstacle to using fastMalloc and fastFree here.
On the other hand, there might be a risk with plug-in compatibility, if
plug-ins themselves accidentally mix malloc/free with NPN_MemAlloc and
NPN_MemFree.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list