Re: Re: Ethereal 0.99.0 epan/strutil.c - utf_8to16 bug

<[email protected]>
Newsgroups gmane.network.ethereal.devel
Message-ID <[email protected]>
Gerald,

Build 18017 has the utf_8to16 problem fixed.

Thanks.


Joe
> 
> From: Gerald Combs <[email protected]>
> Date: 2006/04/27 Thu PM 03:00:41 GMT
> To: Ethereal development <[email protected]>
> Subject: Re: [Ethereal-dev] Ethereal 0.99.0 epan/strutil.c - utf_8to16 bug
> 
> [email protected] wrote:
> > Ulf,
> > 
> > The string passed to the function is:
> > 
> > "C:\Program Files\Ethereal\dumpcap" -i \Device\NPF_{66E7710E-054E-408F-91A2-29B8AD1BDEDB} -Z -B 1 -f "ether host 00:14:22:CD:FD:42"
> > 
> > The string length exceeds INITIAL_FMTBUF_SIZE, so the
> > g_realloc logic triggers.  However, the buffer is half
> > the size it should be because it doesn't account for
> > the size of wchar_t, resulting in the access violation.
> > 
> > Ironically, the call to g_malloc before this is correct:
> > 
> >    utf16buf[idx] = g_malloc(utf16buf_len[idx] * sizeof(wchar_t));
> > 
> > So the failure only occurs if the length of utf8str
> > exceeds INITIAL_FMTBUF_SIZE.
> 
> Can you try build 18017 or later from
> http://www.ethereal.com/distribution/buildbot-builds/win32/ and see if
> the problem is fixed?
> _______________________________________________
> Ethereal-dev mailing list
> [email protected]
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.