[perl #130522] do not allow endpos to exceed strend
authorHugo van der Sanden <hv@crypt.org>
Sun, 8 Jan 2017 14:54:57 +0000 (14:54 +0000)
committerHugo van der Sanden <hv@crypt.org>
Wed, 11 Jan 2017 19:41:34 +0000 (19:41 +0000)
commit67853908828c6be05781083bf27d19b72bfe2ade
tree6a6c643e6556a966d041add60ff7bed5a503b6d1
parenta4ea1387b8d394336c13c7517f4e2b3c83b62f0b
[perl #130522] do not allow endpos to exceed strend

Check substrings can come from lookaheads, so their length can exceed
minlen. Use a clamped variant of HOP3c to avoid a bad endpos in this case.
regexec.c