Skip Menu |

This queue is for tickets about the File-PCAP CPAN distribution.

Report information
The Basics
Id: 123818
Status: resolved
Priority: 0/
Queue: File-PCAP

People
Owner: mamawe [...] cpan.org
Requestors: Konstantin [...] Tokar.RU
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • v0.0.4
  • v0.0.5
Fixed in: v0.0.6



Subject: Invalid data length
Date: Tue, 5 Dec 2017 06:24:33 +0300
To: bug-File-PCAP [...] rt.cpan.org
From: Konstantin Tokar <konstantin [...] tokar.ru>
Original: sub _read_pcap_global_header { my ($self) = @_; my $fh = $self->{fh}; my ($magic,$vmajor,$vminor,$tzone,$sigfigs,$snaplen,$dlt) = unpack("LSSlLLL",<$fh>); Patched: sub _read_pcap_global_header { my ($self) = @_; my $fh = $self->{fh}; my $data; read $fh, $data, 24; my ($magic,$vmajor,$vminor,$tzone,$sigfigs,$snaplen,$dlt) = unpack("LSSlLLL",$data); Best regards Konstantin Tokar
RT-Send-CC: Konstantin [...] Tokar.RU
I corrected it like you proposed. Thanks, Mathias