[webkit-changes] [WebKit/WebKit] 414e6f: Add bounds check to StringBuffer::operator[]

Chris Dumez noreply at github.com
Wed Nov 1 16:33:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 414e6f26ba7c7045cd0274427adfd6c9b542294b
      https://github.com/WebKit/WebKit/commit/414e6f26ba7c7045cd0274427adfd6c9b542294b
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-11-01 (Wed, 01 Nov 2023)

  Changed paths:
    M Source/WTF/wtf/text/StringBuffer.h

  Log Message:
  -----------
  Add bounds check to StringBuffer::operator[]
https://bugs.webkit.org/show_bug.cgi?id=264051

Reviewed by Darin Adler.

Add bounds check to StringBuffer::operator[] for extra safety.
This tested as performance-neutral on the benchmarks we track.

* Source/WTF/wtf/text/StringBuffer.h:
(WTF::StringBuffer::operator[]):

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




More information about the webkit-changes mailing list