On Mon, Aug 25, 2014 at 10:39:59PM -0500, Vladimir Támara Patiño wrote: > Using tcpdump in a firewall with 5.5 (also happens with 5.4 and I guess with > current) and certain addres of the LAN I got always a segfault. > > It is a bug within the function gethostbyaddr. It can be reproduced with > the minimal test program available at: > http://openbsd.7691.n7.nabble.com/problem-with-gethostbyaddr-on-OBSD-5-4-td242329.html > and the following steps: > > 1. Create a entry in /etc/hosts with IP address but without name, for example: > echo 192.168.1.89 >> /etc/hosts > 2. Compile the test program of the link > cc -o gethostbyaddr gethostbyaddr.c > 3. Run de test program with the address added to /etc/hosts without name: > ./gethostbyaddr 192.168.1.89 >
This bug was fixed some times ago. http://openbsd.cs.toronto.edu/cgi-bin/cvsweb/src/lib/libc/asr/gethostnamadr_async.c.diff?r1=1.28&r2=1.29&f=h Eric.
