Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at commview.c:335

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

commview_dump

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/commview.c)expand/collapse
Show more  
 317  static gboolean commview_dump(wtap_dumper *wdh,
 318                                const struct wtap_pkthdr *phdr,
 319                                const union wtap_pseudo_header *pseudo_header,
 320                                const guchar *pd, int *err)
 321  {
 322          commview_header_t cv_hdr;
 323          size_t bytes_written = 0;
 324          char date_time[5];
 325   
 326          memset(&cv_hdr, 0, sizeof(cv_hdr));
 327   
 328          cv_hdr.data_len = GUINT16_TO_LE((guint16)phdr->caplen);
 329          cv_hdr.source_data_len = GUINT16_TO_LE((guint16)phdr->caplen);
 330          cv_hdr.version = 0;
 331   
 332          strftime(date_time, 5, "%Y", localtime(&phdr->ts.secs));
 333          cv_hdr.year = GUINT16_TO_LE((guint16)strtol(date_time, NULL, 10));
 334   
 335          strftime(date_time, 5, "%m", localtime(&phdr->ts.secs));
Show more  




Change Warning 972.30179 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: