[Webkit-unassigned] [Bug 281873] New: Update length check in appendQuotedJSONString to align with String's max length

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 21 13:57:46 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=281873

            Bug ID: 281873
           Summary: Update length check in appendQuotedJSONString to align
                    with String's max length
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: daniel_liu4 at apple.com

`appendQuotedJSONString` currently uses a CheckedUint32; however, the maximum length of a String is 2147483647, which is the bounds of an Int32. Thus, we should make sure that `appendQuotedJSONString` uses the correct bounds to avoid creating Strings past the maximum length.

rdar://138178439

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241021/0a11e239/attachment.htm>


More information about the webkit-unassigned mailing list