This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #118175] avoid making pointers outside of objects
authorTony Cook <tony@develop-help.com>
Mon, 3 Jun 2013 12:28:37 +0000 (22:28 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 3 Jun 2013 12:28:37 +0000 (22:28 +1000)
commit285a3ca139d04d2ee1894c9a9110294ee8bb0309
treef3ad54ac0121ff802b04e85171df9820f18c4114
parentaad042978d66db81c18ecc36f46bd4b27dd980e0
parentdfb8f192c83f98bba59d4a8c282ee4cf5bfca8a9
[perl #118175] avoid making pointers outside of objects

In a couple of cases, when strings were allocated above the 2GB line
on 32-bit CPUs, this could cause regexps to act strangely - not matching
or crashing perl.

The final patch in the set prevents pointer creation which the C standard
describes as undefined behaviour, but is typically safe (as long as the
pointer isn't derefed)