(/home/sate/Testcases/c/cve/wireshark-1.2.0/text2pcap.c) |
| |
| 690 | | | (void) |
| 691 | | | { |
| 692 | | | struct pcap_hdr fh; |
| 693 | | | |
| 694 | | | fh.magic = PCAP_MAGIC; |
| 695 | | | fh.version_major = 2; |
| 696 | | | fh.version_minor = 4; |
| 697 | | | fh.thiszone = 0; |
| 698 | | | fh.sigfigs = 0; |
| 699 | | | fh.snaplen = 102400; |
| 700 | | | fh.network = pcap_link_type; |
| 701 | | | |
| 702 | | | fwrite(&fh, sizeof(fh), 1, output_file); |
Ignored Return Value
The return value of fwrite() is never checked in the highlighted execution scenario. - If the return value can indicate an error, the error will be ignored if the highlighted code executes.
- CodeSonar is configured to enforce Ignored Return Value checks for fwrite(). (To change the set of enforced Ignored Return Value checks, use configuration file parameters RETURN_CHECKER_CHECKED_FUNCS and RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 703 | | | } |
| |