Ethereal-dev: [Ethereal-dev] Bounds check problem 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: "Peter Hawkins" <peter@xxxxxxxxxxxxxxxxx>
Date: Fri, 14 Jun 2002 17:44:01 +1000
Hi...

Another bounds check problem:
packet-smb-common.c lines 81-93.
This buffer overflow is not exploitable, because it's impossible to get a
valid value into the hf_index (since you can't stick 0s in a string),
which means the problem will be caught by an assertion in the
proto_tree_add_string routine.

I think the correct fix is to implement a multi-byte string length for
tvbuffs, as suggested in the comment.

=)
Peter