[Webkit-unassigned] [Bug 220584] createImageBitmap() causes null pointer dereference using Cairo lib

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 13 03:25:54 PST 2021


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

--- Comment #1 from wz906234737 at gmail.com ---
The code that dereference nullptr

```
// ============== Source/WebCore/html/ImageBitmap.cpp:822 ===============

    auto tempBitmapData = createImageBuffer(scriptExecutionContext, imageData->size(), bufferRenderingMode);

// `tempBitmapData` createImageBuffer(...) fail and return a nullptr ====

    tempBitmapData->putImageData(AlphaPremultiplication::Unpremultiplied, *imageData, IntRect(0, 0, imageData->width(), imageData->height()), { }, alphaPremultiplication);
// ======================================================================

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210113/62983471/attachment.htm>


More information about the webkit-unassigned mailing list