From 8b5aa913711b32b1e1bc707919d2a98c1875d443 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Sun, 2 Dec 2012 21:37:34 +0000 Subject: Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8037 : Fix an infinite loop in CSN.1 dissector when having more than 255 padding bits svn path=/trunk/; revision=46335 --- epan/dissectors/packet-csn1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-csn1.c') diff --git a/epan/dissectors/packet-csn1.c b/epan/dissectors/packet-csn1.c index 19ce89fd67..d67220fcfc 100644 --- a/epan/dissectors/packet-csn1.c +++ b/epan/dissectors/packet-csn1.c @@ -1306,7 +1306,7 @@ csnStreamDissector(proto_tree *tree, csnStream_t* ar, const CSN_DESCR* pDescr, t proto_tree *padding_tree = proto_item_add_subtree(ti, ett_csn1); while (remaining_bits_len > 0) { - guint8 bits_to_handle = remaining_bits_len + (bit_offset%8); + gint bits_to_handle = remaining_bits_len + (bit_offset%8); if (bits_to_handle > 32) { bits_to_handle = 32 - (bit_offset%8); -- cgit v1.2.3