Ethereal-dev: Re: [Ethereal-dev] Bug in packet-smb-common.c

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 7 Mar 2002 14:33:14 -0800
On Thu, Mar 07, 2002 at 03:54:34PM +0100, andreas.sikkema@xxxxxxxxxxx wrote:
> I suppose adding a check for the number of bytes that have been copied
> to the temp buffer would be in order.

Or, alternatively, implementing "tvb_dbcs_strnlen()", or something such
as that, which functions like "tvb_strnlen()" but handles 16-bit
characters, and making "display_unicode_string()" work like
"display_ms_string()" would be in order.