Changeset 264645 in webkit
- Timestamp:
- Jul 21, 2020, 1:03:28 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/cairo/ImageBufferCairoImageSurfaceBackend.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r264642 r264645 1 2020-07-21 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK][WPE] imported blink large gradient tests are crashing on debug builds 4 https://bugs.webkit.org/show_bug.cgi?id=214192 5 6 Reviewed by Žan Doberšek. 7 8 The assert is: 9 ASSERT(cairo_surface_status(m_surface.get()) == CAIRO_STATUS_SUCCESS); 10 11 and the status we are getting is CAIRO_STATUS_INVALID_SIZE, because we are reaching the cairo image size 12 limit. We should check the size before trying to create the image surface. This patch fixes the crash, but not 13 the tests themselves that will still fail due to the cairo limitation. 14 15 * platform/graphics/cairo/ImageBufferCairoImageSurfaceBackend.cpp: 16 (WebCore::ImageBufferCairoImageSurfaceBackend::create): Return early if the image size is bigger than the 17 maximum allowed by cairo. 18 1 19 2020-07-20 Alex Christensen <achristensen@webkit.org> 2 20 -
trunk/Source/WebCore/platform/graphics/cairo/ImageBufferCairoImageSurfaceBackend.cpp
r264050 r264645 34 34 35 35 #include "Color.h" 36 #include "ImageBackingStore.h" 36 37 #include <cairo.h> 37 38 #include <wtf/IsoMallocInlines.h> … … 46 47 47 48 IntSize backendSize = calculateBackendSize(size, resolutionScale); 48 if (backendSize.isEmpty() )49 if (backendSize.isEmpty() || backendSize.width() > cairoMaxImageSize || backendSize.height() > cairoMaxImageSize) 49 50 return nullptr; 50 51
Note:
See TracChangeset
for help on using the changeset viewer.