RE: Bug#511407: bing: segfaults on IPv6 addresses
Jeremie,
Thanks for the patch. I'll get it included shortly.
I'll also try for inclusion in lenny as IPv6 is a release goal, however we are in very deep freeze so I can't make any promises.
Mark
-original message-
Subject: Bug#511407: bing: segfaults on IPv6 addresses
From: Jeremie Koenig <jk@jk.fr.eu.org>
Date: 11/01/2009 02:53
Package: bing
Version: 1.1.3-1
Tags: patch, ipv6
Hello,
Bing assumes that gethostbyname() returns IPv4 addresses.
With "options inet6" in /etc/resolv.conf, or on IPv6-only hosts, this is
no longer true and bing will segfault trying to fit a 128 bits address
in a 32 bits buffer.
The attached patch updates bing to use the modern getaddrinfo/getnameinfo
resolver interfaces, which will ensure only AF_INET addresses are
returned.
Thanks for maintaining bing,
--
Jeremie Koenig <jk@jk.fr.eu.org>
http://jk.fr.eu.org
<<bing-1.1.3.gai.diff>>
Reply to: