Wireshark-dev: Re: [Wireshark-dev] Bug 976
From: Guy Harris <[email protected]>
Date: Thu, 20 Jul 2006 18:31:59 -0700
On Jun 27, 2006, at 5:51 AM, Martin Mathieson wrote:

Looking at frame 170 in the trace, it looks like tvb_get_ephemeral_text() struggles with the null character in the middle of the 4th parameter (in the WWW-Authenticate header) and returns NULL.
That shouldn't happen - tvb_get_ephemeral_string() (not _text) just  
uses memcpy() to copy the string, so it shouldn't be affected by a  
null character.  It can only return null if ep_alloc() returns null -  
and if null pointers cause a problem, you'll crash in
	strbuf[length] = '\0';

before tvb_get_ephemeral_string() returns.