Wireshark-commits: [Wireshark-commits] master 2693e1d: In the name of God and all that is holy, don
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=2693e1d1081ac8a5f3cf15b5961d0229775e25e6
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
2693e1d by Guy Harris (guy@xxxxxxxxxxxx):
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_get_letohl(), which 1) doesn't care about
alignment and 2) always fetches in little-endian order.
Change-Id: I44721cbf3c4456797990cc741836c9dd8c6c3696
Reviewed-on: https://code.wireshark.org/review/8423
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from 5862c94 In the name of God and all that is holy, don't do that.
adds 2693e1d In the name of God and all that is holy, don't do that.
Summary of changes:
epan/dissectors/packet-lbmc.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)