Wireshark mailing list archives
Re: how to handle dissecting length encoded strings
From: Fulko Hew <fulko.hew () gmail com>
Date: Mon, 14 Mar 2011 12:34:34 -0400
On Mon, Mar 14, 2011 at 12:17 PM, Chris Maynard <chris.maynard () gtech com> wrote:
Chris Maynard <chris.maynard@...> writes: Oops, I guess you still need to NULL-terminate context if n_oct is 0
The trouble is that tvb_get_nstringz0() calls tvb_get_nstringz() under the covers and its tvb_get_nstringz() that has the issue. It expects to be given a null terminated string, not a length specified string. BTW. I tried tvb_get_ephemeral_string() and it seemed to do the trick. ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- how to handle dissecting length encoded strings Fulko Hew (Mar 14)
- Re: how to handle dissecting length encoded strings Chris Maynard (Mar 14)
- Re: how to handle dissecting length encoded strings Chris Maynard (Mar 14)
- Re: how to handle dissecting length encoded strings Fulko Hew (Mar 14)
- Re: how to handle dissecting length encoded strings Chris Maynard (Mar 14)
- Re: how to handle dissecting length encoded strings Jakub Zawadzki (Mar 14)
- Re: how to handle dissecting length encoded strings Chris Maynard (Mar 14)
- Re: how to handle dissecting length encoded strings Chris Maynard (Mar 14)