Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 53282
Status: resolved
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: rafl [...] debian.org
Requestors: avar [...] cpan.org
Cc:
AdminCc:

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



Subject: Catalyst::Engine::HTTP doesn't check the return value of inet_aton() and fails to listen on any interface as a result
 I tried to start a Catalyst development server like this:

    perl scriptmyapp_server.pl -h .0.0.0 -r

(note the invalid IP address)

Which resulted in this being printed on stdout:

[info] Myapp powered by Catalyst 5.80016
Use of uninitialized value $addr in string eq at /usr/local/share/perl/5.10.1/Catalyst/Engine/HTTP.pm line 200.
Use of uninitialized value $addr in gethostbyaddr at /usr/local/share/perl/5.10.1/Catalyst/Engine/HTTP.pm line 205.
Use of uninitialized value in subroutine entry at /usr/local/share/perl/5.10.1/Catalyst/Engine/HTTP.pm line 205.
Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at /usr/local/share/perl/5.10.1/Catalyst/Engine/HTTP.pm line 205.

Catalyst also failed to listen on any interface as a result.

Instead it should whine if you specify an invalid interface and check the return value of inet_aton.
Catalyst::Engine::HTTP has been deprecated against the plack server, which is not believed to have this issue.