Wireshark mailing list archives
Re: [Wireshark-dev] Familiar with gtk/sctp_graph_dlg.c?
From: Chris Maynard <chris.maynard () gtech com>
Date: Tue, 26 Apr 2011 13:42:36 +0000 (UTC)
Michael Tüxen <Michael.Tuexen@...> writes:
It seems to be less readable version of: dup_list = (guint32 *) &sack_header->gaps[nr];This code should also point to the right place in memory, assuming the correct alignment. dup_list is 4 byte aligned if and only if sack_header is.
It's definitely nicer ... but I wonder if it could lead to a different compiler/clang warning about possibly accessing memory past the struct (i.e., if nr >= 1), since there's only 1 struct gaps element declared. For clarity, it's probably worth a shot. ... but speaking of nr ... isn't it being used uninitialized? ___________________________________________________________________________ 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:
- Re: [Wireshark-dev] Familiar with gtk/sctp_graph_dlg.c?, (continued)
- Re: [Wireshark-dev] Familiar with gtk/sctp_graph_dlg.c? Chris Maynard (Apr 25)
- Re: Familiar with gtk/sctp_graph_dlg.c? Michael Tüxen (Apr 25)
- Re: Familiar with gtk/sctp_graph_dlg.c? Michael Tüxen (Apr 25)
- Re: Familiar with gtk/sctp_graph_dlg.c? Guy Harris (Apr 25)
- Re: Familiar with gtk/sctp_graph_dlg.c? Michael Tüxen (Apr 26)
- Re: [Wireshark-dev] Familiar with gtk/sctp_graph_dlg.c? Christopher Maynard (Apr 26)
- Re: Familiar with gtk/sctp_graph_dlg.c? Guy Harris (Apr 26)
- Re: Familiar with gtk/sctp_graph_dlg.c? Michael Tüxen (Apr 26)
- Re: Familiar with gtk/sctp_graph_dlg.c? Guy Harris (Apr 25)
- Re: [Wireshark-dev] Familiar with gtk/sctp_graph_dlg.c? Chris Maynard (Apr 25)
- Re: Familiar with gtk/sctp_graph_dlg.c? Michael Tüxen (Apr 26)
- Re: [Wireshark-dev] Familiar with gtk/sctp_graph_dlg.c? Chris Maynard (Apr 26)
- Re: [Wireshark-dev] Familiar with gtk/sctp_graph_dlg.c? Chris Maynard (Apr 26)