(/home/sate/Testcases/c/cve/wireshark-1.2.0/dumpcap.c) |
| |
| 412 | | | print_statistics_loop(gboolean machine_readable) |
| 413 | | | { |
| 414 | | | GList *if_list, *if_entry, *stat_list = NULL, *stat_entry; |
| 415 | | | if_info_t *if_info; |
| 416 | | | if_stat_t *if_stat; |
| 417 | | | int err; |
| 418 | | | gchar *err_str; |
| 419 | | | pcap_t *pch; |
| 420 | | | char errbuf[PCAP_ERRBUF_SIZE];
x /usr/include/pcap/pcap.h |
| |
70 | #define PCAP_ERRBUF_SIZE 256 |
| |
|
| 421 | | | struct pcap_stat ps; |
| 422 | | | #ifndef _WIN32 |
| 423 | | | struct sigaction act; |
| 424 | | | #endif |
| 425 | | | |
| 426 | [+] | | if_list = get_interface_list(&err, &err_str); |
Event 1:
get_interface_list() does not initialize err. - This may be because of a failure case or other special case for get_interface_list().
hide
|
|
 |
| 427 | | | if (if_list == NULL) { |
Event 10:
Taking true branch. if_list == (void *)0 evaluates to true.
hide
|
|
| 428 | | | switch (err) { |
Uninitialized Variable
err was not initialized. The issue can occur if the highlighted code executes. See related events 1 and 2. Show: All events | Only primary events |
|
| |