(/home/sate/Testcases/c/cve/wireshark-1.2.0/capture_opts.c) |
| |
| 619 | | | capture_opts_list_interfaces(gboolean machine_readable) |
| 620 | | | { |
| 621 | | | GList *if_list; |
| 622 | | | GList *if_entry; |
| 623 | | | if_info_t *if_info; |
| 624 | | | int err; |
| 625 | | | gchar *err_str; |
| 626 | | | int i; |
| 627 | | | GSList *ip_addr; |
| 628 | | | if_addr_t *if_addr; |
| 629 | | | char addr_str[ADDRSTRLEN]; |
| 630 | | | |
| 631 | [+] | | if_list = get_interface_list(&err, &err_str); |
Event 1:
get_interface_list() does not initialize err_str. - This may be because of a failure case or other special case for get_interface_list().
hide
|
|
 |
| 632 | | | if (if_list == NULL) { |
Event 10:
Taking true branch. if_list == (void *)0 evaluates to true.
hide
|
|
| 633 | | | switch (err) { |
Event 11:
err evaluates to 1.
hide
|
|
| 634 | | | case CANT_GET_INTERFACE_LIST: |
| 635 | | | cmdarg_err("%s", err_str); |
Uninitialized Variable
err_str was not initialized. The issue can occur if the highlighted code executes. See related events 1 and 2. Show: All events | Only primary events |
|
| |