WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
281873
Update length check in appendQuotedJSONString to align with String's max length
https://bugs.webkit.org/show_bug.cgi?id=281873
Summary
Update length check in appendQuotedJSONString to align with String's max length
daniel_liu4
Reported
2024-10-21 13:57:46 PDT
`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
Attachments
Add attachment
proposed patch, testcase, etc.
daniel_liu4
Comment 1
2024-10-21 13:59:18 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/35541
Mark Lam
Comment 2
2024-10-28 22:15:36 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/35850
EWS
Comment 3
2024-10-29 09:04:58 PDT
Committed
285840@main
(0aa654672af4): <
https://commits.webkit.org/285840@main
> Reviewed commits have been landed. Closing PR #35850 and removing active labels.
Mark Lam
Comment 4
2024-11-05 07:41:10 PST
***
Bug 280395
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug