Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 94f6264db37e061dcdbe45285687161e74e5a8be
      
https://github.com/WebKit/WebKit/commit/94f6264db37e061dcdbe45285687161e74e5a8be
  Author: Adan Lopez <[email protected]>
  Date:   2024-10-07 (Mon, 07 Oct 2024)

  Changed paths:
    A LayoutTests/fast/canvas/canvas-layer-drawing-no-source-image-expected.txt
    A LayoutTests/fast/canvas/canvas-layer-drawing-no-source-image.html
    M Source/WebCore/platform/graphics/ImageBufferContextSwitcher.cpp

  Log Message:
  -----------
  Crash in GraphicsContext::drawImageBuffer
https://bugs.webkit.org/show_bug.cgi?id=277034
rdar://132434375

Reviewed by Darin Adler and Ryosuke Niwa.

In the scenario thata sourceImageRect is too big so the m_sourceImage can't be 
allocated we need to handle it safely to prevent a crash.

* Source/WebCore/platform/graphics/ImageBufferContextSwitcher.cpp:
(WebCore::ImageBufferContextSwitcher::endDrawSourceImage):

Canonical link: https://commits.webkit.org/284812@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to