Euphoria
Ticket #675:
splice() machine crash
-
Reported by
mattlewis
Jun 13, 2011
When splicing an atom using a position greater than the length of the source sequence, the result is a machine crash (interpreter, binder, translator).
Example test case:
include std/unittest.e
test_equal("splice() integer after length", "abc ", splice("abc", 32, 4 ) )
Details
1. Comment by mattlewis
Jun 13, 2011
See: hg:euphoria/rev/f119c361de26
changeset: 4946:f119c361de26 branch: 4.0 parent: 4933:c65d07fede56 user: Matt Lewis date: Mon Jun 13 07:21:22 2011 -0400 files: tests/t_sequence.e description:
- failing test for ticket 675
2. Comment by mattlewis
Jun 13, 2011
See: hg:euphoria/rev/6b0249c3b3cf
changeset: 4949:6b0249c3b3cf branch: 4.0 tag: tip user: Matt Lewis date: Mon Jun 13 09:20:49 2011 -0400 files: docs/release/4.0.3.txt source/be_execute.c source/compile.e description:
- Fixed machine crash in splice when splicing an atom before beginning of sequence or after end
- fixes ticket 675