(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/airopeek9.c) |
| |
| 562 | | | airopeekv9_seek_read(wtap *wth, gint64 seek_off, |
| 563 | | | union *, guchar *pd, int length, |
| 564 | | | int *err, gchar **err_info) |
| 565 | | | { |
| 566 | | | hdr_info_t hdr_info; |
| 567 | | | |
| 568 | [+] | | if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1)
x /usr/include/stdio.h |
| |
141 | #define SEEK_SET 0 /* Seek from beginning of file. */ |
| |
|
 |
| 569 | | | return FALSE; |
| 570 | | | |
| 571 | | | |
| 572 | [+] | | if ((wth->random_fh, &hdr_info, err, err_info) == -1) |
Event 4:
() does not initialize hdr_info. - This may be because of a failure case or other special case for ().
hide
|
|
 |
| 573 | | | return FALSE; |
| 574 | | | |
| 575 | | | switch (wth->file_encap) { |
Event 9:
wth->file_encap evaluates to 22.
hide
|
|
| 576 | | | |
| 577 | | | case WTAP_ENCAP_IEEE_802_11_WITH_RADIO: |
| 578 | | | ->ieee_802_11 = hdr_info.ieee_802_11; |
Uninitialized Variable
hdr_info was not initialized. The issue can occur if the highlighted code executes. See related event 4. Show: All events | Only primary events |
|
| |