Wireshark-dev: Re: [Wireshark-dev] FW: DISSECTOR_ASSERT_NOT_REACHED in WLCCP decode...
From: Stephen Fisher <stephentfisher@xxxxxxxxx>
Date: Wed, 30 May 2007 13:15:35 -0700
On Wed, May 30, 2007 at 04:09:06PM -0400, Kevin A. Noll wrote:

> So I'm looking at the value strings, and I'm wondering why we should 
> terminate them with {0, NULL} and what happens if one of the value 
> pairs needs to be {0, "a real string"} ?

You can still use 0, "a real string" as one of the entries.  You just 
need to have 0, NULL as the final entry.  If you don't, the code will 
keep reading past the end and run into random memory space looking for 
that 0, NULL entry.


Steve