[webkit-changes] [WebKit/WebKit] e657a3: startFrom parameter should be unsigned

AtariDreams noreply at github.com
Mon Jan 22 14:22:18 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e657a3449fbfd115a1db854fa1c769efa4fe299f
      https://github.com/WebKit/WebKit/commit/e657a3449fbfd115a1db854fa1c769efa4fe299f
  Author: Rose <83477269+AtariDreams at users.noreply.github.com>
  Date:   2024-01-22 (Mon, 22 Jan 2024)

  Changed paths:
    M Source/JavaScriptCore/yarr/RegularExpression.cpp
    M Source/JavaScriptCore/yarr/RegularExpression.h

  Log Message:
  -----------
  startFrom parameter should be unsigned
https://bugs.webkit.org/show_bug.cgi?id=255527

Reviewed by Alexey Shvayka.

The value being passed as this argument always unsigned anyway, and when
used within the match function itself, it is always being passed to
another method or function, which takes an unsigned value, not a signed
one.

* Source/JavaScriptCore/yarr/RegularExpression.cpp:
  (JSC::Yarr::RegularExpression::match const):
  (JSC::Yarr::replace):
* Source/JavaScriptCore/yarr/RegularExpression.h:

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




More information about the webkit-changes mailing list