aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lbmc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-05-11 17:22:30 -0700
committerGuy Harris <guy@alum.mit.edu>2015-05-12 00:22:57 +0000
commit5862c94e901beb828125f39233cec2696ef14be2 (patch)
treef30bfb84bb6c6001d40bc9b0231997a09f22446c /epan/dissectors/packet-lbmc.c
parenta0046c344dc3e0a767eeb454056cdb7c4c0c5ce9 (diff)
In the name of God and all that is holy, don't do that.
http://www.bitterfilms.com/rejected.html 1) There is *NO* guarantee that you can safely dereference a misaligned pointer. 2) There is *NO* guarantee that you are running on a little-endian machine, so that an attempt to fetch a 32-bit integer through such a pointer will fetch it in little-endian form. Instead, fetch it using tvb_letohl(), which 1) doesn't care about alignment and 2) always fetches in little-endian order. Change-Id: I30ad6607b7c6d5047245bfcfdcbe757b02d02172 Reviewed-on: https://code.wireshark.org/review/8422 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-lbmc.c')
0 files changed, 0 insertions, 0 deletions