In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/87bdcc9b414ba26f7f21edd96362f0fef9166509?hp=38e3b244f46695a70f41e8f8af02147747dff6bf>

- Log -----------------------------------------------------------------
commit 87bdcc9b414ba26f7f21edd96362f0fef9166509
Author: Jarkko Hietaniemi <[email protected]>
Date:   Sat Feb 20 08:49:04 2016 -0500

    Add assert(matches_string).
    
    Coverity CID #135728: Explicit null dereferenced (FORWARD_NULL)
    
    Coverity sees an execution path that leaves matches_string NULL.
-----------------------------------------------------------------------

Summary of changes:
 regcomp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/regcomp.c b/regcomp.c
index e337183..5725a3a 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -17662,6 +17662,7 @@ Perl__get_regclass_nonbitmap_data(pTHX_ const regexp 
*prog,
                     sv_catpvs(matches_string, " ");
                 } /* end of loop through the text */
 
+                assert(matches_string);
                 if (SvCUR(matches_string)) {  /* Get rid of trailing blank */
                     SvCUR_set(matches_string, SvCUR(matches_string) - 1);
                 }

--
Perl5 Master Repository

Reply via email to