This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e78bc66
)
Assert before deref due to possible NULL.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 29 Jun 2014 12:47:17 +0000
(08:47 -0400)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 30 Jun 2014 11:46:07 +0000
(07:46 -0400)
Coverity perl5 CID 68587.
regexec.c
patch
|
blob
|
blame
|
history
diff --git
a/regexec.c
b/regexec.c
index
88615a4
..
9100e47
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-6188,6
+6188,7
@@
NULL
/* calculate c1 and c2 for possible match of 1st char
* following curly */
ST.c1 = ST.c2 = CHRTEST_VOID;
+ assert(ST.B);
if (HAS_TEXT(ST.B) || JUMPABLE(ST.B)) {
regnode *text_node = ST.B;
if (! HAS_TEXT(text_node))