aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-btrfcomm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-btrfcomm.c b/epan/dissectors/packet-btrfcomm.c
index 091cf9e932..3c2336f86c 100644
--- a/epan/dissectors/packet-btrfcomm.c
+++ b/epan/dissectors/packet-btrfcomm.c
@@ -312,7 +312,7 @@ get_le_multi_byte_value(tvbuff_t *tvb, int offset, proto_tree *tree, guint32 *va
byte = tvb_get_guint8(tvb, offset);
offset += 1;
val |= ((byte >> 1) & 0xff) << (bc++ * 7);
- } while ((byte & 0x1) == 0);
+ } while (((byte & 0x1) == 0) && (bc <= 4));
*val_ptr = val;