Changeset 261400 in webkit


Ignore:
Timestamp:
May 8, 2020, 11:36:32 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

SIGILL @ WebCore::Shape::createRasterShape -- DOS ASAN
https://bugs.webkit.org/show_bug.cgi?id=211539

Patch by Pinki Gyanchandani <pgyanchandani@apple.com> on 2020-05-08
Reviewed by Simon Fraser.

Corrected the comment.

No new test needed.

  • rendering/shapes/Shape.cpp:

(WebCore::Shape::createRasterShape):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r261399 r261400  
     12020-05-08  Pinki Gyanchandani  <pgyanchandani@apple.com>
     2
     3        SIGILL @ WebCore::Shape::createRasterShape -- DOS ASAN
     4        https://bugs.webkit.org/show_bug.cgi?id=211539
     5
     6        Reviewed by Simon Fraser.
     7 
     8        Corrected the comment.
     9
     10        No new test needed.
     11
     12        * rendering/shapes/Shape.cpp:
     13        (WebCore::Shape::createRasterShape):
     14
    1152020-05-08  Rob Buis  <rbuis@igalia.com>
    216
  • trunk/Source/WebCore/rendering/shapes/Shape.cpp

    r261363 r261400  
    200200    auto imageData = imageBuffer->getImageData(AlphaPremultiplication::Unpremultiplied, { IntPoint(), imageRect.size() });
    201201   
    202     // Removing the Release Assert, as we could get to a value where imageData could be nullptr. A case where
    203     // ImageRect.size() is huge, imageData::create can return a nullptr because data size has overflowed.
    204     // Refer rdar://problem/61793884
     202    // We could get to a value where imageData could be nullptr. A case where ImageRect.size() is huge, imageData::create
     203    // can return a nullptr because data size has overflowed. Refer rdar://problem/61793884
    205204    if (!imageData || !imageData->data())
    206205        return createShape();
Note: See TracChangeset for help on using the changeset viewer.