Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 548b60525e35dd2b448520b213a332b83d001e1e
      
https://github.com/WebKit/WebKit/commit/548b60525e35dd2b448520b213a332b83d001e1e
  Author: Michael Saboff <[email protected]>
  Date:   2024-10-28 (Mon, 28 Oct 2024)

  Changed paths:
    M JSTests/stress/regexp-vflag-property-of-strings.js
    M Source/JavaScriptCore/yarr/YarrPattern.cpp

  Log Message:
  -----------
  ASAN_TRAP | Yarr::CharacterClassConstructor::unicodeOpSorted due to out of 
order Unicode Case Folding
https://bugs.webkit.org/show_bug.cgi?id=282200
rdar://138178588

Reviewed by Mark Lam.

Certain ASCII characters can introduce Unicode characters (and vice versa) when 
we add all the
case variations in a case insensitive regex.  This leads to incorrect behavior 
in performSetOpWithMatches,
since one function it calls, unicodeOpSorted(), assume that its matches 
argument is in sorted order.

Renamed asciiOpSorted() to asciiOp(), since it doesn't care that its matches 
vector is sorted.

Added two new tests added to regexp-vflag-property-of-strings.js.

* JSTests/stress/regexp-vflag-property-of-strings.js:
* Source/JavaScriptCore/yarr/YarrPattern.cpp:
(JSC::Yarr::CharacterClassConstructor::performSetOpWithMatches):
(JSC::Yarr::CharacterClassConstructor::asciiOp):
(JSC::Yarr::CharacterClassConstructor::asciiOpSorted): Deleted.

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