[Webkit-unassigned] [Bug 170912] New: [iOS, macOS] Guard against passing nullptr to vImagePremultiplyData

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 17 13:35:27 PDT 2017


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

            Bug ID: 170912
           Summary: [iOS, macOS] Guard against passing nullptr to
                    vImagePremultiplyData
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bfulgham at webkit.org

If the system is under heavy memory pressure, it is possible for a calloc to fail, resulting in an ImageBuffer with a nullptr data member.

We should return from an attempt to perform ImageBuffer::putData on a nullptr without taking any action, or perhaps RELEASE_ASSERT that we encountered this case.

Since the memory pressure may be transient, it seems reasonable to just bail out early; a future attempt may succeed.

-- 
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/20170417/89b4bb75/attachment.html>


More information about the webkit-unassigned mailing list