(/home/sate/Testcases/c/cve/wireshark-1.2.0/tshark.c) |
| |
| 2396 | | | process_packet(capture_file *cf, gint64 offset, const struct wtap_pkthdr *whdr, |
| 2397 | | | union *, const guchar *pd) |
| 2398 | | | { |
| 2399 | | | frame_data fdata; |
| 2400 | | | gboolean create_proto_tree; |
| 2401 | | | epan_dissect_t *edt; |
| 2402 | | | gboolean passed; |
| 2403 | | | |
| 2404 | | | |
| 2405 | | | cf->count++; |
| 2406 | | | |
| 2407 | | | |
| 2408 | | | |
| 2409 | | | |
| 2410 | | | if (do_dissection) { |
Event 1:
Taking false branch. do_dissection evaluates to false.
hide
|
|
| 2411 | | | fill_in_fdata(&fdata, cf, whdr, offset); |
| 2412 | | | |
| 2413 | | | if (print_packet_info) { |
| 2414 | | | |
| 2415 | | | |
| 2416 | | | if (g_resolv_flags) { |
| 2417 | | | host_name_lookup_process(NULL); |
| 2418 | | | } |
| 2419 | | | } |
| 2420 | | | |
| 2421 2443 |  | | [ Lines 2421 to 2443 omitted. ] |
| 2444 | | | epan_dissect_run(edt, , pd, &fdata, |
| 2445 | | | (print_packet_info && !verbose) ? &cf->cinfo : NULL); |
| 2446 | | | |
| 2447 | | | tap_push_tapped_queue(edt); |
| 2448 | | | |
| 2449 | | | |
| 2450 | | | if (cf->rfcode) |
| 2451 | | | passed = dfilter_apply_edt(cf->rfcode, edt); |
| 2452 | | | else |
| 2453 | | | passed = TRUE; |
| 2454 | | | } else { |
| 2455 | | | |
| 2456 | | | |
| 2457 | | | |
| 2458 | | | edt = NULL; |
| 2459 | | | passed = TRUE; |
Event 2:
!0 evaluates to true.
hide
|
|
| 2460 | | | } |
| 2461 | | | |
| 2462 | | | if (passed) { |
Event 3:
Taking true branch. passed evaluates to true.
hide
|
|
| 2463 | | | |
| 2464 | | | |
| 2465 | | | |
| 2466 | | | prev_dis_ts = fdata.abs_ts; |
| |