Ethereal-dev: [Ethereal-dev] ethereal crashed on windows

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Tao Yang" <yangtao.mike@xxxxxxxxx>
Date: Thu, 6 Apr 2006 15:37:20 +0800
Hi,
    I have compiled ethereal 0.10.14 with Visual studio 2003 according
http://wiki.ethereal.com/Development/MSVC7.

 But when I start it, It will crashed reading the Hosts files.

 I make a debug, it crashed at line 1564 in file epan/addr_resolv.c

 if ((hf = eth_fopen(hostspath, "r")) == NULL)
    return FALSE;
  while (fgetline(&line, &size, hf) >= 0) {

 the eth_fopen return a non null pointer,  but the this pointer is invalid.
hf	0x77c5fce0 {_ptr=0x00000000 <Bad Ptr> _cnt=0 _base=0x00000000 <Bad
Ptr> ...}	_iobuf *

The eth_fopen is a macro for glib.

Did anybody can help me?