Avoid wraparound when casting unsigned size_t to signed ssize_t.
authorAndy Dougherty <doughera@lafayette.edu>
Wed, 16 Jan 2013 17:30:43 +0000 (12:30 -0500)
committerYves Orton <demerphq@gmail.com>
Thu, 14 Feb 2013 06:09:39 +0000 (07:09 +0100)
commit2d84cf1abfd062a682bdf4511087de0e1edc73c0
tree587a8d350aed0ad2dc5fe7ec10892a0f3d65d0a8
parent449f793a0a0b96d9d5147a9378e6091e4a5baa5e
Avoid wraparound when casting unsigned size_t to signed ssize_t.

Practically, this only affects a perl compiled with 64-bit IVs on a 32-bit
system.  In that instance a value of count >= 2**31 would turn negative
when cast to (ssize_t).
(cherry picked from commit 94e529cc4d56863d7272c254a29eda2b002a4335)
perlio.c