Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at ringbuffer.c:117

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

ringbuf_open_file

(/home/sate/Testcases/c/cve/wireshark-1.2.0/ringbuffer.c)expand/collapse
Show more  
 97  static int ringbuf_open_file(rb_file *rfile, int *err)
 98  {
 99    char    filenum[5+1];
 100    char    timestr[14+1];
 101    time_t  current_time;
 102   
 103    if (rfile->name != NULL) {
 104      if (rb_data.unlimited == FALSE) {
 105        /* remove old file (if any, so ignore error) */
 106        ws_unlink(rfile->name);
 107      }
 108      g_free(rfile->name);
 109    }
 110   
 111  #ifdef _WIN32 
 112    _tzset();
 113  #endif
 114    current_time = time(NULL);
 115   
 116    g_snprintf(filenum, sizeof(filenum), "%05u", (rb_data.curr_file_num + 1) % 100000);
 117    strftime(timestr, sizeof(timestr), "%Y%m%d%H%M%S", localtime(&current_time));
Show more  




Change Warning 5027.30113 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: