re_intuit_start(): MBOL limit in chars not bytes
authorDavid Mitchell <davem@iabyn.com>
Fri, 7 Feb 2014 21:11:28 +0000 (21:11 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 8 Feb 2014 14:04:55 +0000 (14:04 +0000)
commitceedd9f2b24b1840bef2fc2da7a50798b8e470a1
tree7dbdb2cb0225e6e17f5b2ce9883adbbbc9b8a789
parentab028a158ac4a4c6c0c2ebcca00ae595f93d2fe6
re_intuit_start(): MBOL limit in chars not bytes

The calculation for the maximum position \n should be searched for,
strend - prog->minlen, is currently done in bytes. Change it to
chars for correctness. It probably doesn't matter at the moment, because
any overshoot in \n will still fail other constraints (which *do* calculate
the end-point correctly). But in the future that might change, and we
don't want any surprises.
regexec.c