This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix VMS-specific wraparound error in S_mayberelocate.
authorCraig A. Berry <craigberry@mac.com>
Mon, 25 Nov 2013 00:27:00 +0000 (18:27 -0600)
committerCraig A. Berry <craigberry@mac.com>
Mon, 25 Nov 2013 00:27:00 +0000 (18:27 -0600)
commitf420cce1268f3055e24f052a6b2c0afbbfea7624
tree22ef1b2b22f00497455f386059ecbe950c635077
parent106793b61fcb516b154e40608eef7ef29caa9590
Fix VMS-specific wraparound error in S_mayberelocate.

In trimming the trailing slash from a Unix path spec, we haven't
(since 5.003 or so) been ensuring that we weren't stepping off
the beginning of the string.  No, it's not normal to have '/' as
a library path, but if it happens we shouldn't allow a zero or
negative (actually wraparound since unsigned) value for the path
length.
perl.c