Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5757471893c37c07f97e55cbff426a90ab07cf49
      
https://github.com/WebKit/WebKit/commit/5757471893c37c07f97e55cbff426a90ab07cf49
  Author: Fujii Hironori <[email protected]>
  Date:   2025-02-04 (Tue, 04 Feb 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/ComplexTextController.cpp

  Log Message:
  -----------
  std::span::operator[] raises "span index out of range" error in 
ComplexTextController::adjustGlyphsAndAdvances
https://bugs.webkit.org/show_bug.cgi?id=286905

Reviewed by Darin Adler.

With Windows Debug CRT, an expression "charactersSpan[characterIndex +
1]" in ComplexTextController::adjustGlyphsAndAdvances raised "span
index out of range" error for 
fast/text/word-break-letter-spacing-utf16-surrogates.html.

Before accessing the element, we have to ensure
`charactersSpan.size()` is enough.

* Source/WebCore/platform/graphics/ComplexTextController.cpp:
(WebCore::ComplexTextController::adjustGlyphsAndAdvances):

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