spamassassin-users October 2010 archive
Main Archive Page > Month Archives  > spamassassin-users archives
spamassassin-users: RE: SA 3.3.1 and NetAddr::IP 4.034

RE: SA 3.3.1 and NetAddr::IP 4.034

From: Giampaolo Tomassoni <Giampaolo_at_nospam>
Date: Thu Oct 28 2010 - 15:15:53 GMT
To: <users@spamassassin.apache.org>

> > Looking into it...
>
> > > I know NetAddr::IP recently got a re-design and probably SA have to
> cope
> > > with this.
>
> Looks like a but in NetAddr::IP 4.034, it forgets to adjust the CIDR
> mask
> when converting an IPv4 address to an IPv6 notation:
>
> correct (NetAddr-IP-4.033):
> $ perl -le 'use NetAddr::IP; print NetAddr::IP->new6("127.0.0.0/8")'
> 0:0:0:0:0:0:7F00:0/104
>
> wrong (NetAddr-IP-4.034):
> $ perl -le 'use NetAddr::IP; print NetAddr::IP->new6("127.0.0.0/8")'
> 0:0:0:0:0:0:7F00:0/8

Mmmh.

In fact it seems they bobbed few lines from 4.033...

You sure new6 may be used with IPv4 address, huh?

If you confirm this, I can take care of reporting the bug to upstream.

Giampaolo

> Mark