develooper Front page | perl.perl5.porters | Postings from January 2018

[perl #125351] null ptr deref -> Perl_ck_shift (op.c:10857)

From:
Tony Cook via RT
Date:
January 30, 2018 05:42
Subject:
[perl #125351] null ptr deref -> Perl_ck_shift (op.c:10857)
Message ID:
rt-4.0.24-19928-1517290954-710.125351-15-0@perl.org
On Mon, 29 Jan 2018 21:29:37 -0800, tonyc wrote:
> On Wed, 17 Jan 2018 16:24:03 -0800, tonyc wrote:
> > On Mon, 08 Jan 2018 16:41:35 -0800, hv wrote:
> > > This appears similar to rt131836, but is not fixed by its fix. It
> > > reduces at least to:
> > >   ./miniperl -e 's//${sub{b{]]]{}#$/ sub{}'
> > > with the same stack trace.
> > >
> > > I'll come back to this after completing triage on the current batch
> > > of
> > > new tickets if nobody else gets to it, but I anticipate it'll need
> > > more knowledge of the lex/parse phase than I can bring to bear.
> >
> > This looks like another case of #125351 and other similar sublex
> > recovery issues.
> 
> And so it is.
> 
> Since it requires feedng code to the interpreter it isn't a security
> issue, so it's now public.
> 
> Since it duplicates #125351 I'm merging it into that ticket.

And here is hopefully a patch for this long-standing issue.

Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=125351



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