diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2012-12-02 21:37:34 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2012-12-02 21:37:34 +0000 |
commit | 8b5aa913711b32b1e1bc707919d2a98c1875d443 (patch) | |
tree | 70176696ddbc165aeb11e001c456505072a1aee0 /epan/dissectors | |
parent | 51323635aa632a22392e5485f4881c374ddb26fb (diff) |
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
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-csn1.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |