FAQ
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 <jhi@iki.fi>
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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupperl5-changes @
categoriesperl
postedFeb 20, '16 at 4:20p
activeFeb 20, '16 at 4:20p
posts1
users1
websiteperl.org

1 user in discussion

Jarkko Hietaniemi: 1 post

People

Translate

site design / logo © 2017 Grokbase