## 52_A_croak.dpatch by Nico Golde <nion@debian.org> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: CVE-2007-6341 diff -urNad git~/lib/Net/DNS/RR/A.pm git/lib/Net/DNS/RR/A.pm --- git~/lib/Net/DNS/RR/A.pm 2008-01-22 21:36:10.000000000 +0100 +++ git/lib/Net/DNS/RR/A.pm 2008-01-22 21:36:16.000000000 +0100 @@ -18,7 +18,7 @@ sub new { my ($class, $self, $data, $offset) = @_; - if ($self->{"rdlength"} > 0) { + if ($self->{"rdlength"} >= 4) { $self->{"address"} = inet_ntoa(substr($$data, $offset, 4)); }