This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #118175] avoid making a pointer outside a string
authorTony Cook <tony@develop-help.com>
Sat, 1 Jun 2013 02:33:05 +0000 (12:33 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 3 Jun 2013 12:05:27 +0000 (22:05 +1000)
commitdfb8f192c83f98bba59d4a8c282ee4cf5bfca8a9
treef3ad54ac0121ff802b04e85171df9820f18c4114
parent9597860a6bc546628ff50b88916291944416e77f
[perl #118175] avoid making a pointer outside a string

Simply adding scan + max causes undefined behaviour per ANSI C if the
result points outside of the object scan points at.
regexec.c