diff options
author | Anders Broman <anders.broman@ericsson.com> | 2010-11-23 17:33:57 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2010-11-23 17:33:57 +0000 |
commit | ab16d07fd3448d05c4d7e5edf1029203dc6e30d7 (patch) | |
tree | 14eb36555c792fc0c72e7b7a90e9967158395faa /epan/tvbuff.c | |
parent | cce1bef672bede4f913920961c8d9fbef16341a5 (diff) |
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.c | 2 |
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; } |