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

[perl #132892] Possibly memory leak when matching strings usingpre-compiled regexes stored in hash key (perl >= v5.26)

Thread Previous | Thread Next
From:
Sergey Aleynikov via RT
Date:
February 22, 2018 11:30
Subject:
[perl #132892] Possibly memory leak when matching strings usingpre-compiled regexes stored in hash key (perl >= v5.26)
Message ID:
rt-4.0.24-11187-1519298988-1655.132892-15-0@perl.org
Bisect points to commit b10cb25a6c86fd96fff8f2dfa6d8df3e6b51a451
Author: Yves Orton <demerphq@gmail.com>
Date:   Sat Sep 17 20:14:53 2016 +0200

    regcomp.c: S_concat_pat: guard against missing trailing nulls

    The regex engine expects the pattern to have a null byte at
    SvEND(pat), but is not guaranteed to receive such a pattern
    when it is called, so S_concat_pat should guard against this
    case. It turns out this is only an issue when there is exactly
    one "argument" to the pattern. (Consider concatenation rules, etc).

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

Thread Previous | 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