Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: e93f8aa0c4f285e1bc9ac8dfc36ab6838e15d94e https://github.com/WebKit/WebKit/commit/e93f8aa0c4f285e1bc9ac8dfc36ab6838e15d94e Author: Chris Dumez <cdu...@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 _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes