Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d1a5c8f02f39709c137acc979dba6f51d9f9cbd8
      
https://github.com/WebKit/WebKit/commit/d1a5c8f02f39709c137acc979dba6f51d9f9cbd8
  Author: Chris Dumez <[email protected]>
  Date:   2024-04-25 (Thu, 25 Apr 2024)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp

  Log Message:
  -----------
  Regression(277265@main) js/dom/encode-URI-test.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=273229
rdar://127029885

Reviewed by Yusuke Suzuki.

In 277265@main, I updated the `k` variable to use size_t instead of int
since switching to std::span upgraded the `length` type to size_t. However,
switching to an unsigned type led to overflows in some of the checks, such
as this one:
```
if (k <= characters.size() - 3)
```

To address the issue, I updated the conditions to guard against overflows.

* Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:
(JSC::decode):

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