ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Infinite loop in packet-gdsdb.c

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Tue, 23 Oct 2007 07:38:28 +0200
Hi,

Good catch, both of them.
Fixed in revision 23251.

Thanx,
Jaap

packet steve wrote:


Potential infinite loop at line 608 of packet-gdsdb.c while(tvb_bytes_exist(tvb, 0, 12)) { proto_tree_add_item(tree, hf_gdsdb_receive_direction, tvb, offset, 4, FALSE);
 offset += 4;
 proto_tree_add_item(tree, hf_gdsdb_receive_offset, tvb, offset, 8, FALSE);
 offset += 8;
}
Perhaps the intention was:
 tvb_bytes_exist(tvb, offset, 12)