Skip Menu |
 

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

Report information
The Basics
Id: 15001
Status: resolved
Priority: 0/
Queue: IO-Socket-SSL

People
Owner: Nobody in particular
Requestors: jeffrey.klein [...] priority-health.com
Cc:
AdminCc:

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



Subject: Character "0" (chr 0x30) incorrectly read as "\0" (chr 0x00)
Download (untitled) / with headers
text/plain 525b
perl v5.8.2 IO::Socket::SSL v0.95 Linux 2.6.9-22.ELsmp # $ssl is an existing SSL socket $buf = "0"; sysread($ssl, $buf, 1, 1); # This SHOULD read a single character into the second position of # $buf, and leave the first unchanged # Instead, it replaces the first character with "\0" The code responsible is in IO/Socket/SSL sub generic_read: $$buffer ||= ''; Since '0' is 'false', the buffer is emptied, and later filled with "\0". It should be replaced with $$buffer = '' unless defined $$buffer;
From: Steffen_Ullrich [...] genua.de
Download (untitled) / with headers
text/plain 653b
should be fixed in release 0.98 On Mo. 10. Okt. 2005, 14:29:45, guest wrote: Show quoted text
> perl v5.8.2 > IO::Socket::SSL v0.95 > Linux 2.6.9-22.ELsmp > > # $ssl is an existing SSL socket > > $buf = "0"; > sysread($ssl, $buf, 1, 1); > > # This SHOULD read a single character into the second position of > # $buf, and leave the first unchanged > # Instead, it replaces the first character with "\0" > > The code responsible is in IO/Socket/SSL sub generic_read: > $$buffer ||= ''; > > Since '0' is 'false', the buffer is emptied, and later filled with "\0". > > It should be replaced with > $$buffer = '' unless defined $$buffer; > > > >
fixed in 0.98


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.