summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-02-19 21:14:44 -0700
committerKarl Williamson <public@khwilliamson.com>2014-02-19 21:29:23 -0700
commited885487570a4a0046b0cb32a477526f8f016d93 (patch)
tree777e8a482999226c4889e36177047b4bffc62be2 /embed.fnc
parentd3db5cfeb8346f308b4354ee1c8970ab9b526472 (diff)
downloadperl-ed885487570a4a0046b0cb32a477526f8f016d93.tar.gz
regcomp.c: Don't read uninitialized data
I keep forgetting that the OP of a regnode is not defined in Pass 1 of the regex compiler. This is likely the cause of inconsistent results in lib/locale.t, as valgrind shows there to be a read of uninitialized data before this patch, and the result is randomly tainting when there shouldn't be, consistent with the test failures.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index d0943e82f2..f747aae499 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -2079,7 +2079,7 @@ EsRn |char * |regpatws |NN RExC_state_t *pRExC_state \
|NN char *p|const bool recognize_comment
Ei |void |alloc_maybe_populate_EXACT|NN RExC_state_t *pRExC_state \
|NN regnode *node|NN I32 *flagp|STRLEN len \
- |UV code_point|const bool downgradable
+ |UV code_point|bool downgradable
Ei |U8 |compute_EXACTish|NN RExC_state_t *pRExC_state
Es |char * |nextchar |NN RExC_state_t *pRExC_state
Es |bool |reg_skipcomment|NN RExC_state_t *pRExC_state