S_has_runtime_code(): avoid buffer overrun
authorDavid Mitchell <davem@iabyn.com>
Thu, 3 Jan 2013 14:17:25 +0000 (14:17 +0000)
committerDavid Mitchell <davem@iabyn.com>
Thu, 3 Jan 2013 14:17:25 +0000 (14:17 +0000)
commitfe20acee329b0a11c6645b7a86021bd34488c94e
tree09ea4f5283fc07cd843b96e0dc96484732ef64ff
parent67b16946469d4388672de15e6209c0f7f2d100bb
S_has_runtime_code(): avoid buffer overrun

This function looks for '(?{' style strings in a pattern. If the last char
in the pattern was '(', it could read a couple of bytes off the end of
the pattern. This is harmless from a logic and security viewpoint since
false positives are ok; but I'm still fixing it for correctness's sake.
regcomp.c