[Webkit-unassigned] [Bug 96272] NPN_InitializeVariantWithStringCopy is wrong for platforms that return NULL from malloc(0)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 22 10:19:19 PST 2013


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





--- Comment #13 from Darin Adler <darin at apple.com>  2013-01-22 10:21:11 PST ---
(In reply to comment #12)
> > If I understand correctly NetScape plugins, a plugin can allocate its own String variant through NPN_InitializeVariantWithString call.
> 
> Do we implement that in WebKit? I could not find it anywhere in source code, only NPN_InitializeVariantWithStringCopy, which of course copies the string with any WebKit provided allocator.

Lets get to the bottom of this. Either fix (fastMalloc, or adding zero check) seems OK, but we should do the fastMalloc fix if we can.

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