Wireshark-commits: [Wireshark-commits] rev 44937: /trunk-1.8/ui/gtk/ /trunk-1.8/ui/gtk/: io_stat.c

Date: Mon, 17 Sep 2012 08:46:48 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=44937

User: etxrab
Date: 2012/09/17 01:46 AM

Log:
 Copy over
 Revision 44158 - Add another cast that should have been part of r44025 to fully resolve Coverity CID 703863: Unintentional integer overflow.
 --------------------------------------------------------------------------------
 Revision 44025 - Fix Coverity CID's 703862-703863: Unintentional integer overflow.
 --------------------------------------------------------------------------------
 Revision 43925 - Dynamicly allocate " items".
 make it a gpointer and cast to io_item_t items where needed.
 The aim is to make io_stat_graph_t generic and reusable.
 --------------------------------------------------------------------------------
 Revision 43924 - Align structs and code a bit, ultimatly code should be shared.
 --------------------------------------------------------------------------------
 Revision 43854 - Fix some clang warnings: implicit conversion from enumeration type 'GtkStateType' to different enumeration type 'GtkStateFlags' [-Werror,-Wconversion]
 GTK_STATE_NORMAL and GTK_STATE_FLAG_NORMAL are both 0.
 --------------------------------------------------------------------------------
 Revision 43621 - Allow counting *any* type of field, FT_NONE, FT_PROTOCOL, whatever, by moving
 FT_NONE case to default case per Jakub's suggestion.
 
 - Fix get_it_value() for FT_PROTOCOL fields by breaking CALC_TYPE_COUNT_FRAMES
 and CALC_TYPE_COUNT_FIELDS out of the adv_type switch statement just like
 COUNT_TYPE_FRAMES.
 
 - Avoid an overflow in pixmap_clicked_event() that was causing crashes when
 clicking outside the data portion of the graph (when the capture hasn't enough
 files to fill the entire graph window),
 
 --------------------------------------------------------------------------------
 Revision 43536 - Update Free Software Foundation address.
 --------------------------------------------------------------------------------
 Revision 43140 - Add casting to keep Windows happy.
 --------------------------------------------------------------------------------
 Revision 43137 - Split the Advanced unit COUNT(*) into COUNT FRAMES(*) and COUNT FIELDS(*).
 
 (Before checking the code it wasn't clear to me what COUNT(*) was counting
 and--especially with SCTP's bundling of user messages--counting fields was
 really what I wanted/needed.)
 
 Remove a 32-bit cast (should have been part of r43136).
 --------------------------------------------------------------------------------
 Revision 43136 - Support math operations (SUM, MAX, MIN, etc.) on 64-bit fields.
 
 Part of fixing bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7610 Crashes the VC++ Runtime Library

Directory: /trunk-1.8/ui/gtk/
  Changes    Path          Action
  +214 -187  io_stat.c     Modified