Skip to content

Commit

Permalink
[test] add testcase for GH #766, not repro anymore
Browse files Browse the repository at this point in the history
this paniced with asan only. no need for an ok test here
  • Loading branch information
Reini Urban committed Nov 9, 2014
1 parent a03cfa0 commit 5b127ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion t/pmc/resizablepmcarray.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!./parrot
# Copyright (C) 2001-2011, Parrot Foundation.
# Copyright (C) 2001-2014, Parrot Foundation.

=head1 NAME

Expand Down Expand Up @@ -958,6 +958,14 @@ too_low:
finalize $P9
too_low_end:
ok($I0, "splice with negative offset too low")

# GH 766 heap-buffer-overflow with asan
$P1 = new ['ResizablePMCArray']
$P2 = new ['ResizablePMCArray']
$P1 = 2
$P2 = 0
splice $P1, $P2, 0, 1

.end


Expand Down

0 comments on commit 5b127ee

Please sign in to comment.