Skip Menu |

This queue is for tickets about the IO-String CPAN distribution.

Report information
The Basics
Id: 13841
Status: resolved
Priority: 0/
Queue: IO-String

People
Owner: Nobody in particular
Requestors: mda [...] discerning.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: read and sysread should return undef on error, not negative
IO::String read (and sysread) will sometimes return negative result values based on arithmetic from reading beyond the end of the string. This should never be allowed. Callers expect read and sysread to return undef in the event of errors.
I cannot see how the result might end up negative based on arithmetic. Please provide a sample program that demonstrates this bug. What version of IO::String are you using?