Ethereal-dev: Re: [Ethereal-dev] [danieljo@xxxxxxxxxxxx: Bug#280556: ethereal: Allocates memor

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Wed, 10 Nov 2004 02:48:14 -0800
Frederic Peters wrote:
As reported to the Debian bug tracking system,

I've checked in a change to the OPSI dissector to make it check for bogus TLV lengths. (If the length in a TLV is the length of the entire TLV, not just the length of the value, then the loop that processes the TLVs *M*U*S*T* check to make sure the length is at least the sum of the length of the type field and the length of the length field, so that it does *NOT* loop infinitely if the length field is 0.)