Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 81ec83aef725e14600ce22c49ff71ac2c12e31a4
      
https://github.com/WebKit/WebKit/commit/81ec83aef725e14600ce22c49ff71ac2c12e31a4
  Author: Michael Saboff <[email protected]>
  Date:   2023-11-03 (Fri, 03 Nov 2023)

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

  Log Message:
  -----------
  CrashOnOverflow in CharacterClassConstructor::compareUTF32Strings
https://bugs.webkit.org/show_bug.cgi?id=260173
rdar://113872060

Reviewed by Ryosuke Niwa.

Fixed and simplified the the sort comparison function compareUTF32Strings() to 
properly handle
zero length strings.

Added relevant tests.

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

Originally-landed-as: 265870.381@safari-7616-branch (b5b70c4574a7). 
rdar://117809500
Canonical link: https://commits.webkit.org/270215@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to