summaryrefslogtreecommitdiff
path: root/epan/proto.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2012-05-28 18:37:10 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2012-05-28 18:37:10 +0000
commit3e52049ff5d3fdc91a8924fc0742168dab9a0672 (patch)
tree1f401ca853a31eab2ca4eff65cd96e68ac22af9c /epan/proto.c
parentb74438e41d23c9232535c44d2ac9337f5d4760c2 (diff)
downloadwireshark-3e52049ff5d3fdc91a8924fc0742168dab9a0672.tar.gz
Fix Coverity CID's 702388 and 702422: OVERFLOW_BEFORE_WIDEN.
svn path=/trunk/; revision=42886
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c
index e9029844a5..310ce1c66a 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -7529,7 +7529,7 @@ proto_tree_add_split_bits_item_ret_val(proto_tree *tree, const int hf_index, tvb
crumb_end_bit_offset = mask_initial_bit_offset
+ crumb_spec[i].crumb_bit_offset
+ crumb_spec[i].crumb_bit_length;
- crumb_mask = (1 << crumb_spec[i].crumb_bit_length) - 1;
+ crumb_mask = (G_GUINT64_CONSTANT(1) << crumb_spec[i].crumb_bit_length) - 1;
if (crumb_end_bit_offset > mask_greatest_bit_offset) {
mask_greatest_bit_offset = crumb_end_bit_offset;