mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
--- !ditz.rubyforge.org,2008-03-06/issue
|
|
title: safeguard against creating too long strings
|
|
desc: |-
|
|
Current implementation has multiple limitations which prevent very long
|
|
strings (but still shorter than the 4G spec limit) from always working.
|
|
|
|
The x-UTF-8 encoded string is limited by a 4G (perhaps 2G) byte size limit.
|
|
It may not be possible to e.g. case convert a string near this byte limit
|
|
if the converted string contains codepoints with a longer UTF-8 encoding.
|
|
|
|
Current C typing shortcomings (e.g. using "int" instead of an unsigned type
|
|
for indexing strings) may cause a 2G byte (and char) limit to strings.
|
|
|
|
A basic safeguard would be to refuse interning strings longer than a
|
|
certain limit.
|
|
type: :task
|
|
component: duk
|
|
release: v0.6
|
|
reporter: sva <sami.vaarala@poplatek.fi>
|
|
status: :unstarted
|
|
disposition:
|
|
creation_time: 2013-03-12 22:15:03.269558 Z
|
|
references: []
|
|
|
|
id: 8d3bab8af11e60088d2310751c8ac63a46a4c819
|
|
log_events:
|
|
- - 2013-03-12 22:15:03.456796 Z
|
|
- sva <sami.vaarala@poplatek.fi>
|
|
- created
|
|
- ""
|
|
|