Wireshark mailing list archives

proto_tree_add_bits_ret_val() BUG


From: George Deprez <geodepe () gmail com>
Date: Fri, 7 Jan 2011 13:24:06 -0600

*proto_tree_add_bits_ret_val*() displays incorrect values when num_bits is
32

If I ask for 16 bits and adjust the offset by 16 and ask for 16 more I get
the correct bits.
If I ask for 64 bits from the base offset I get the correct bits.
But if I ask for 32 bits from the same base offset I get all zero.

 Using the same bit offset, I tried different tests with FT_UINT16,FT_UINT32
and FT_UINT64.

Has anybody had this problem?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: