(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/capture_dlg.c) |
| |
| 595 | | | static guint32 ( |
| 596 | | | GtkWidget *unit_om, |
| 597 | | | guint32 value) |
| 598 | | | { |
| 599 | | | GtkWidget *, *; |
| 600 | | | int unit; |
| 601 | | | |
| 602 | | | = ((unit_om));
x /usr/include/gtk-2.0/gtk/gtkoptionmenu.h |
| |
38 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
|
| 603 | | | = (());
x /usr/include/gtk-2.0/gtk/gtkmenu.h |
| |
42 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
|
| 604 | | | unit = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(), "size_unit"));
x /usr/include/glib-2.0/gobject/gobject.h |
| |
52 | #define G_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_OBJECT, GObject)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
181 | #define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
222 | #define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT)) |
| |
|
| 605 | | | |
| 606 | | | |
| 607 | | | switch(unit) { |
| 608 | | | case(SIZE_UNIT_KILOBYTES): |
| 609 | | | return value; |
| 610 | | | case(SIZE_UNIT_MEGABYTES): |
| 611 | | | if(value > G_MAXINT / 1024) { |
| 612 | | | return 0; |
| 613 | | | } else { |
| 614 | | | return value * 1024; |
| 615 | | | } |
| 616 | | | case(SIZE_UNIT_GIGABYTES): |
| 617 | | | if(value > G_MAXINT / (1024 * 1024)) { |
| 618 | | | return 0; |
| 619 | | | } else { |
| 620 | | | return value * 1024 * 1024; |
| 621 | | | } |
| 622 | | | default: |
| 623 | | | g_assert_not_reached();
x /usr/include/glib-2.0/glib/gtestutils.h |
| |
73 | #define g_assert_not_reached() do { g_assertion_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, NULL); } while (0) |
| |
x /usr/include/glib-2.0/glib/gmacros.h |
| |
160 | # define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__)) |
| |
|
| 624 | | | return 0; |
Unreachable Data Flow
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 625 | | | } |
| 626 | | | } |
| |