Closed
Bug 681511
Opened 13 years ago
Closed 6 years ago
Inserting elements into a max_length array using splice results in unexpected behavior
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
Future
People
(Reporter: cpeyer, Unassigned)
References
Details
Attachments
(1 file)
531 bytes,
text/plain
|
Details |
See attached file for test code.
When splice is used near the end of a max length array, values at the beginning of the array get deleted, and the value to be spliced in does not get inserted.
Here is the output for the testcase:
Before splice - length: 4294967295
[1,2,3,4...,3rd to last value,2nd to last value,last value,]
After splice - length: 0
[,,,...,,,,last value]
Note that the length has gone to 0 after splicing, but still has a value at a[uint.MAX_VALUE]. The two values at the beginning of the array have also been converted to undefined.
Comment 1•13 years ago
|
||
oh man, just when you think you can put a bug to bed.
yeah, i guess for consistency it would be good to address these cases as well.
Updated•13 years ago
|
Assignee: nobody → fklockii
Comment 2•13 years ago
|
||
(should check how unshift behaves too. at first glance it seems like it will fall victim to similar problem as push and splice.)
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Flags: flashplayer-bug+
Comment 3•13 years ago
|
||
(In reply to Felix S Klock II from comment #2)
> (should check how unshift behaves too. at first glance it seems like it
> will fall victim to similar problem as push and splice.)
Investigation started and posted on Bug 685323.
Assignee: fklockii → nobody
Priority: P4 → --
Target Milestone: Q1 12 - Brannan → Future
Updated•13 years ago
|
Blocks: array-correctness
Comment 4•6 years ago
|
||
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Comment 5•6 years ago
|
||
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in
before you can comment on or make changes to this bug.
Description
•