DescriptionDisallow sequences with lengths exceeding max allocation supported.
Vector backing stores are limited in size by the maximum allowed by
their allocator. When converting incoming IDL sequence types into
native arrays, check if the requested size exceed that max limit and
throw a TypeError(), if needed.
Only pathological inputs will run up against this limit and exception.
R=
BUG=682910
Review-Url: https://codereview.chromium.org/2657173002
Cr-Commit-Position: refs/heads/master@{#447466}
Committed: https://chromium.googlesource.com/chromium/src/+/4da5a6bc55b8e3909b98f3e0f23d7c5d0cb9ecb8
Patch Set 1 #Patch Set 2 : add expected output #
Total comments: 7
Patch Set 3 : switch to RangeError #Patch Set 4 : re-add expected output #
Messages
Total messages: 31 (20 generated)
|