develooper Front page | perl.perl5.porters | Postings from November 2016

Re: [perl #129826] Invalid read of size 8 in S_parse_body(perl.c:2166) when argv ends with --

Thread Next
From:
Stefan Seifert
Date:
November 3, 2016 19:06
Subject:
Re: [perl #129826] Invalid read of size 8 in S_parse_body(perl.c:2166) when argv ends with --
Message ID:
2114829.uUtoQKqtI2@sphinx
Hi!

On Mittwoch, 26. Oktober 2016 17:18:55 CET Tony Cook via RT wrote:

> Looking at this a bit more closely, I suspect this is a bug in Inline::Perl5
> 
> For perl -e 0 --, argv and argv contain the following:
> 
> argc = 4
> 
> argv[0] = "perl" # or something similar
> argv[1] = "-e"
> argv[2] = "0"
> argv[3] = "--"
> argv[4] = NULL # Inline::Perl5 doesn't appear to do this bit

Oh, thank you for pointing that out and sorry for wasting your time. Valgrind 
is indeed happy when I NULL terminate argv. I just didn't know that was 
required, which is why I propose the attached doc patch.

Thanks again!
Stefan
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About