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
Download (untitled) / with headers
text/plain 240b
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.
Download (untitled) / with headers
text/plain 180b
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?


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.