More tvb_get_nstringz0() fixes. Timo Sirainen pointed out that Bad
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 19 May 2003 03:23:12 +0000 (03:23 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 19 May 2003 03:23:12 +0000 (03:23 +0000)
commite93428cd1230d00b87fe3c71d73392d23ee3e497
tree52efc6af782789bdc73143e570d7f654e6799987
parent799dc39b7a7ce7df50607f4fdbafe70b6e2f023d
More tvb_get_nstringz0() fixes.  Timo Sirainen pointed out that Bad
Things can happen if we pass a zero buffer length to tvb_get_nstringz0().
Throw an exception if this happens.

In various dissectors make sure the tvb_get_nstringz0()'s buffer length
is greater than zero.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7688 f5534014-38df-0310-8fa8-9805f1628bb7
epan/proto.c
epan/tvbuff.c
epan/tvbuff.h
packet-aim.c
packet-fix.c
packet-ppp.c
packet-quake.c
packet-quake2.c
packet-quake3.c
packet-quakeworld.c
packet-scsi.c