ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 12236] Comparing a boolean field against 1 always succeeds

Date: Tue, 15 Mar 2016 20:55:23 +0000

changed bug 12236


What Removed Added
Summary TCP.RST color rule always true on sparc Comparing a boolean field against 1 always succeeds on big-endian machines

Comment # 5 on bug 12236 from
The representation of a Boolean value was changed from 32 bits to 64 bits in
2.0, *but* not all the code was changed to reflect that.  The code for equality
comparison is looking in the wrong field of a union; that *happens* to work on
a little-endian machine, as the lower 32 bits of the 64-bit value are
overplayed with the 32-bit value, but does *not* happen to work on a big-endian
machine.


You are receiving this mail because:
  • You are watching all bug changes.