diff options
author | Karl Williamson <public@khwilliamson.com> | 2014-02-19 21:14:44 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2014-02-19 21:29:23 -0700 |
commit | ed885487570a4a0046b0cb32a477526f8f016d93 (patch) | |
tree | 777e8a482999226c4889e36177047b4bffc62be2 /embed.fnc | |
parent | d3db5cfeb8346f308b4354ee1c8970ab9b526472 (diff) | |
download | perl-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.fnc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |