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)
committerDavid Mitchell <davem@iabyn.com>
Sun, 3 Mar 2013 20:06:24 +0000 (20:06 +0000)
commit78c29bba6adca113363434fac1ad2dc15f32aa8b
tree514610ade5abaecb2de7b067c2948a905519161e
parentd59e31fc729d8a39a774f03bc6bc457029a7aef2
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