Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3d08aa15054681bd4f0b18438c1963e1417cfc67
      
https://github.com/WebKit/WebKit/commit/3d08aa15054681bd4f0b18438c1963e1417cfc67
  Author: Rob Buis <[email protected]>
  Date:   2025-05-21 (Wed, 21 May 2025)

  Changed paths:
    A LayoutTests/media/media-controller-pause-crash-expected.txt
    A LayoutTests/media/media-controller-pause-crash.html
    M Source/WebCore/html/MediaController.cpp

  Log Message:
  -----------
  ASAN_ILL | WebCore::MediaController::updateReadyState; 
WebCore::MediaController::play; WebCore::jsMediaControllerPrototypeFunction_play
https://bugs.webkit.org/show_bug.cgi?id=293019
rdar://151306323

Reviewed by Ryosuke Niwa.

The usage of std::ranges::min has undefined behaviour on empty ranges:
https://en.cppreference.com/w/cpp/algorithm/ranges/min

To fix this avoid calling it for an empty range.

* LayoutTests/media/media-controller-pause-crash-expected.txt: Added.
* LayoutTests/media/media-controller-pause-crash.html: Added.
* Source/WebCore/html/MediaController.cpp:
(WebCore::MediaController::updateReadyState):

Canonical link: https://commits.webkit.org/295222@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