Skip to content

Instantly share code, notes, and snippets.

@timo
Created April 13, 2016 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/a4090024c8e5997b876a54d34576c47f to your computer and use it in GitHub Desktop.
Save timo/a4090024c8e5997b876a54d34576c47f to your computer and use it in GitHub Desktop.
0
ok 1 - decode
ok 2 - Data
1
ok 3 - decode
ok 4 - Data
2
==15110== Invalid read of size 1
==15110== at 0x5029460: MVM_string_utf8_c8_decode (utf8_c8.c:280)
==15110== by 0x503377C: MVM_string_decode_from_buf (ops.c:927)
==15110== by 0x4F96EFC: MVM_interp_run (interp.c:1647)
==15110== by 0x504F0A8: MVM_vm_run_file (moar.c:303)
==15110== by 0x400FAE: main (main.c:191)
==15110== Address 0x6c9b805 is 0 bytes after a block of size 21 alloc'd
==15110== at 0x4C28BF6: malloc (vg_replace_malloc.c:299)
==15110== by 0x4FD624F: MVM_malloc (alloc.h:2)
==15110== by 0x4FD624F: set_size_internal (MVMArray.c:334)
==15110== by 0x4FD624F: set_elems (MVMArray.c:431)
==15110== by 0x4F98FEA: MVM_interp_run (interp.c:2257)
==15110== by 0x504F0A8: MVM_vm_run_file (moar.c:303)
==15110== by 0x400FAE: main (main.c:191)
==15110==
ok 5 - decode
not ok 6 - Data
# Failed test 'Data'
# at gistfile1.txt line 27
# expected: Buf.new(61,102,3,125,35,128,135,52,152,23,204,254,28,84,144,148,100,196,40,177,225)
# got: Buf.new(61,102,3,125,35,128,135,52,152,23,204,254,28,84,144,148,100,196,40,177,225,0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment