Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > eaf226f4357223790f617cae99d7ef65 > files > 4

perl-Net-DNS-0.59-1.2mdv2007.1.src.rpm

## 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));
 	}