[webkit-changes] [WebKit/WebKit] e93f8a: Add bounds check to StringImpl::operator[]
Chris Dumez
noreply at github.com
Mon Oct 30 12:32:20 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e93f8aa0c4f285e1bc9ac8dfc36ab6838e15d94e
https://github.com/WebKit/WebKit/commit/e93f8aa0c4f285e1bc9ac8dfc36ab6838e15d94e
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-10-30 (Mon, 30 Oct 2023)
Changed paths:
M Source/WTF/wtf/text/StringImpl.h
M Source/WTF/wtf/text/WTFString.h
Log Message:
-----------
Add bounds check to StringImpl::operator[]
https://bugs.webkit.org/show_bug.cgi?id=263899
Reviewed by Ryosuke Niwa.
Add bounds check to StringImpl::operator[] for extra safety. This
tested as performance neutral on Speedometer and Jetstream.
* Source/WTF/wtf/text/StringImpl.h:
(WTF::StringImpl::at const):
* Source/WTF/wtf/text/WTFString.h:
(WTF::String::characterAt const):
Canonical link: https://commits.webkit.org/269967@main
More information about the webkit-changes
mailing list