Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at log.c:184

Categories: LANG.MEM.NPD CWE:476
Warning ID: 5497.28260
Procedure: log_rotate_check
Trace: view
Modified: Thu Nov 26 11:08:23 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
ProblemLineSource
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/core/log.c
   Enter log_rotate_check
 174 static void log_rotate_check(LOG_REC *log) 
 175 {
 176         char *new_fname;
 177  
 178         g_return_if_fail(log != NULL);
 179  
 180         if (log->handle == -1 || log->real_fname == NULL)
 181                 return;
 182  
true183         new_fname = log_filename(log);
new_fname <= 4095184         if (strcmp(new_fname, log->real_fname) != 0) {     /* Null Pointer Dereference */
Preconditions
log->real_fname != 0
log->handle != -1
Postconditions
_g_boolean_var_' = 1
new_fname' = 0
tmbuf.tm_sec' = &$unknown_80578




Change Warning 5497.28260 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: