>  The problem is that trace_buf->buflen is the size of the buffer, and
>  not the number of PMCs contained in it, so the loop reads out of the
>  end of cur_pmc and into garbage data. The patch below fixes this, and
>  also adds a test-case to perlarray.t to stop it from coming back.

I thought this description sounded familiar...I included a note about it
when I was working on the parrot_reallocate_buffer patch, and included it
along with the patch. It must have gotten lost in the discussion, but
that's my fault for not opening a second email thread on the issue. I
hope you didn't waste too much time tracking it down, but I'm glad to
see that yours has tests where mine did not.

Thanks,
Mike Lambert


Reply via email to