(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-h223.c) |
| |
| 1137 | | | static gboolean h223_mux_check_hdlc(int h223_level, guint32 nbytes, guint32 tail_buf) |
| 1138 | | | { |
| 1139 | | | guint32 masked; |
| 1140 | | | |
| 1141 | | | switch(h223_level) { |
| 1142 | | | case 0: |
| 1143 | | | |
| 1144 | | | DISSECTOR_ASSERT_NOT_REACHED();
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
131 | #define DISSECTOR_ASSERT_NOT_REACHED() \ |
132 | (REPORT_DISSECTOR_BUG( \ |
133 | ep_strdup_printf("%s:%u: failed assertion \"DISSECTOR_ASSERT_NOT_REACHED\"", \ |
134 | __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1145 | | | return FALSE; |
Unreachable Data Flow
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 1146 | | | |
| 1147 | | | case 1: |
| 1148 | | | masked = tail_buf & 0xffff; |
| 1149 | | | return nbytes >= 2 && masked == 0xE14D; |
| 1150 | | | |
| 1151 | | | case 2: case 3: |
| 1152 | | | masked = tail_buf & 0xffff; |
| 1153 | | | return nbytes >= 2 && (masked == 0xE14D || masked == (0xE14D ^ 0xFFFF)); |
| 1154 | | | |
| 1155 | | | default: |
| 1156 | | | DISSECTOR_ASSERT_NOT_REACHED();
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
131 | #define DISSECTOR_ASSERT_NOT_REACHED() \ |
132 | (REPORT_DISSECTOR_BUG( \ |
133 | ep_strdup_printf("%s:%u: failed assertion \"DISSECTOR_ASSERT_NOT_REACHED\"", \ |
134 | __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1157 | | | return FALSE; |
| 1158 | | | } |
| 1159 | | | } |
| |