Closed
Bug 504525
Opened 16 years ago
Closed 15 years ago
Vector.concat processes arguments in reverse order
Categories
(Tamarin Graveyard :: Virtual Machine, defect, P2)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
RESOLVED
FIXED
Q3 11 - Serrano
People
(Reporter: lhansen, Assigned: tharwood)
References
Details
(Whiteboard: Has patch)
Attachments
(2 files)
488 bytes,
text/plain
|
Details | |
446 bytes,
patch
|
tierney
:
review-
|
Details | Diff | Splinter Review |
See test case. The two lines printed should be the same; the vector case prints 1,4,3,2 rather than 1,2,3,4.
Reporter | ||
Updated•15 years ago
|
Assignee: tierney → tharwood
Priority: -- → P2
Updated•15 years ago
|
Flags: in-testsuite?
Flags: flashplayer-triage+
Flags: flashplayer-qrb+
Comment 1•15 years ago
|
||
Added testcase to as3/Vector/concat.as as well as expectedfail to testconfig.txt.
Comment 2•15 years ago
|
||
Chris do you have a patch for this? (comment #1)
Comment 3•15 years ago
|
||
Media added: http://hg.mozilla.org/tamarin-redux/rev/2705
Flags: in-testsuite? → in-testsuite+
Assignee | ||
Comment 4•15 years ago
|
||
Args were processed in correct order, but were spliced into the result vector using the length of the original vector as an insert point, thus apparently backwards.
Attachment #405340 -
Flags: review?(tierney)
Comment 5•15 years ago
|
||
Comment on attachment 405340 [details] [diff] [review]
Patch, splices into result vector using result's updated length
Fix looks ok, but do we need to version check this fix? Code that's depending on this behavior or working around it might not work if it suddenly changes.
There is a bugFlags member in avmplus::PoolObject to allow hosts to turn on/off certain bug fixes. I think it's only used for one bug so far.
Come to think of it, does the other recent Vector fix also need version checking?
Attachment #405340 -
Flags: review?(tierney) → review-
Comment 6•15 years ago
|
||
If this changes existing behavior of Vector (as shipping in Flash/AIR) then it absolutely *MUST* be version checked.
Comment 7•15 years ago
|
||
To(In reply to comment #6)
> If this changes existing behavior of Vector (as shipping in Flash/AIR) then it
> absolutely *MUST* be version checked.
To expand upon this comment: clearly, the existing behavior of Vector.concat is "wrong" according to the spec. Nevertheless, any existing Flash/AIR content that calls Vector.concat is potentially relying on the existing (wrong) behavior, so said existing behavior needs to be preserved in order to prevent breakage of existing content.
Updated•15 years ago
|
Flags: flashplayer-needsversioning+
Updated•15 years ago
|
Target Milestone: flash10.1 → Future
Reporter | ||
Updated•15 years ago
|
Priority: P2 → --
Reporter | ||
Updated•15 years ago
|
Whiteboard: Has patch
Updated•15 years ago
|
Blocks: vector-tracker
Comment 8•15 years ago
|
||
This was fixed (in a versioned way) in http://hg.mozilla.org/tamarin-redux/rev/3ad427924afe as part of bug 535770
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Flags: flashplayer-bug+
You need to log in
before you can comment on or make changes to this bug.
Description
•