[webkit-changes] [WebKit/WebKit] ae8d7f: Improve overflow handling ergonomics in StringBuil...
Commit Queue
noreply at github.com
Thu Jan 4 17:15:08 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ae8d7f1f03bce910b806ac4b64295a7ef72ff41e
https://github.com/WebKit/WebKit/commit/ae8d7f1f03bce910b806ac4b64295a7ef72ff41e
Author: Mark Lam <mark.lam at apple.com>
Date: 2024-01-04 (Thu, 04 Jan 2024)
Changed paths:
M Source/WTF/wtf/text/StringBuilderInternals.h
Log Message:
-----------
Improve overflow handling ergonomics in StringBuilder::extendBufferForAppendingSlowCase.
https://bugs.webkit.org/show_bug.cgi?id=267100
rdar://120389444
Reviewed by Justin Michaud.
StringBuilder methods are supposed to be resilient against imminent overflows without
crashing. This change adds the needed overflow check in one more place.
* Source/WTF/wtf/text/StringBuilderInternals.h:
(WTF::StringBuilder::extendBufferForAppendingSlowCase):
Canonical link: https://commits.webkit.org/272664@main
More information about the webkit-changes
mailing list