[Webkit-unassigned] [Bug 238662] REGRESSION (iOS 15.4): JSON.parse fails on sketchfab.com

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 4 03:11:53 PDT 2022


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

--- Comment #9 from paul at sketchfab.com ---
(and yes those character are definitely not in the json sent)

while trying to do a repro, something that might be a culprit too is that code relies on slice doing the out of bounds check, so maybe regression is in there


///////////////////

var content = '';
var raw = new Uint8Array(msg);
var step = 65535;
for (var i = 0; i < msg.length; i += step) {
    content = content + String.fromCharCode.apply(null, raw.slice(i, i + step));
}
JSON.parse(content);

///////////////////

-- 
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/20220404/18e623ef/attachment-0001.htm>


More information about the webkit-unassigned mailing list