summaryrefslogtreecommitdiff
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-11-23 17:33:57 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-11-23 17:33:57 +0000
commitab16d07fd3448d05c4d7e5edf1029203dc6e30d7 (patch)
tree14eb36555c792fc0c72e7b7a90e9967158395faa /epan/tvbuff.c
parentcce1bef672bede4f913920961c8d9fbef16341a5 (diff)
downloadwireshark-ab16d07fd3448d05c4d7e5edf1029203dc6e30d7.tar.gz
From Vincent Helfre:
Bug in tvb_get_bits32(), The last bitshift is too large, which causes the least significant bits to be 0 all the time. svn path=/trunk/; revision=35015
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index f1003dcb5e..29ab888fa0 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -1712,7 +1712,7 @@ tvb_get_bits32(tvbuff_t *tvb, gint bit_offset, const gint no_of_bits, const gboo
}
else
{
- tempval = tempval >> (8 - shift);
+ tempval = tempval >> (- shift);
}
value = value | tempval;
}