(/home/sate/Testcases/c/cve/wireshark-1.2.0/file.c) |
| |
| 2850 | | | cf_find_packet_data(capture_file *cf, const guint8 *string, size_t string_size) |
| 2851 | | | { |
| 2852 | | | cbs_t info; |
| 2853 | | | |
| 2854 | | | info.data = string; |
| 2855 | | | info.data_len = string_size; |
| 2856 | | | |
| 2857 | | | |
| 2858 | | | if (cf->string) { |
| 2859 | | | |
| 2860 | | | switch (cf->scs_type) { |
| 2861 | | | |
| 2862 | | | case SCS_ASCII_AND_UNICODE: |
| 2863 | | | return find_packet(cf, match_ascii_and_unicode, &info); |
| 2864 | | | |
| 2865 | | | case SCS_ASCII: |
| 2866 | | | return find_packet(cf, match_ascii, &info); |
| 2867 | | | |
| 2868 | | | case SCS_UNICODE: |
| 2869 | | | return find_packet(cf, match_unicode, &info); |
| 2870 | | | |
| 2871 | | | default: |
| 2872 | | | 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__)) |
| |
|
| 2873 | | | return FALSE; |
Unreachable Data Flow
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 2874 | | | } |
| 2875 | | | } else |
| 2876 | | | return find_packet(cf, match_binary, &info); |
| 2877 | | | } |
| |