(/home/sate/Testcases/c/cve/wireshark-1.2.0/file.c) |
| |
| 917 | | | add_packet_to_packet_list(frame_data *fdata, capture_file *cf, |
| 918 | | | dfilter_t *dfcode, |
| 919 | | | union *, const guchar *buf, |
| 920 | | | gboolean refilter) |
| 921 | | | { |
| 922 | | | gint row; |
| 923 | | | gboolean create_proto_tree = FALSE; |
| 924 | | | epan_dissect_t *edt; |
| 925 | | | |
| 926 | | | |
| 927 | | | fdata->cum_bytes = cum_bytes + fdata->pkt_len; |
| 928 | | | |
| 929 | | | |
| 930 | | | |
| 931 | | | |
| 932 | [+] | | if (nstime_is_unset(&first_ts)) { |
 |
| 933 | | | first_ts = fdata->abs_ts; |
| 934 | | | } |
| 935 | | | |
| 936 | | | |
| 937 | | | if(fdata->flags.ref_time){ |
Event 3:
Skipping " if". fdata->flags.ref_time evaluates to false.
hide
|
|
| 938 | | | first_ts = fdata->abs_ts; |
| 939 | | | } |
| 940 | | | |
| 941 | | | |
| 942 | | | |
| 943 | | | |
| 944 | | | |
| 945 | [+] | | if (nstime_is_unset(&prev_dis_ts)) { |
 |
| 946 | | | prev_dis_ts = fdata->abs_ts; |
| 947 | | | } |
| 948 | | | |
| 949 | | | |
| 950 | | | nstime_delta(&fdata->rel_ts, &fdata->abs_ts, &first_ts); |
| 951 | | | |
| 952 | | | |
| 953 | | | |
| 954 | | | |
| 955 | | | if ((gint32)cf->elapsed_time.secs < fdata->rel_ts.secs |
Event 6:
Skipping " if". - (gint32)cf->elapsed_time.secs < fdata->rel_ts.secs evaluates to false.
- (gint32)cf->elapsed_time.secs == fdata->rel_ts.secs evaluates to false.
hide
|
|
| 956 | | | || ((gint32)cf->elapsed_time.secs == fdata->rel_ts.secs && (gint32)cf->elapsed_time.nsecs < fdata->rel_ts.nsecs)) { |
| 957 | | | cf->elapsed_time = fdata->rel_ts; |
| 958 | | | } |
| 959 | | | |
| 960 | | | |
| 961 | | | |
| 962 | | | nstime_delta(&fdata->del_dis_ts, &fdata->abs_ts, &prev_dis_ts); |
| 963 | | | |
| 964 | | | |
| 965 | | | |
| 966 | | | |
| 967 | | | |
| 968 | | | |
| 969 | | | |
| 970 | | | |
| 971 | | | |
| 972 | | | |
| 973 | | | |
| 974 | | | |
| 975 | | | |
| 976 | | | |
| 977 | | | if ((dfcode != NULL && refilter) || color_filters_used() |
Event 7:
Skipping " if". - dfcode != (void *)0 evaluates to false.
- color_filters_used() evaluates to false.
- num_tap_filters != 0 evaluates to false.
hide
|
|
| 978 | [+] | | || num_tap_filters != 0 || have_custom_cols(&cf->cinfo)) |
 |
| 979 | | | create_proto_tree = TRUE; |
| 980 | | | |
| 981 | | | |
| 982 | [+] | | edt = epan_dissect_new(create_proto_tree, FALSE); |
 |
| 983 | | | |
| 984 | | | if (dfcode != NULL && refilter) { |
Event 19:
Skipping " if". dfcode != (void *)0 evaluates to false.
hide
|
|
| 985 | | | epan_dissect_prime_dfilter(edt, dfcode); |
| 986 | | | } |
| 987 | | | |
| 988 | [+] | | if (color_filters_used()) { |
 |
| 989 | | | color_filters_prime_edt(edt); |
| 990 | | | } |
| 991 | | | |
| 992 | | | col_custom_prime_edt(edt, &cf->cinfo); |
| 993 | | | |
| 994 | [+] | | tap_queue_init(edt); |
Event 22:
edt, which evaluates to g_malloc_n(__n, __s) from epan.c:152, is passed to tap_queue_init(). See related event 18.
hide
|
|
 |
| |