Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at log.c:184

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2113.2114
Procedure: log_rotate_check
Trace: View
Modified: Wed Sep 2 11:51:18 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
   /u1/paul/SATE/2010/c/irssi/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
((char*)$param_1)[16] != -1
((char*)$param_1)[8] != 0
Postconditions
_g_boolean_var_' = 1
log' = $param_1
new_fname' = 0
tmbuf.tm_sec' = &$unknown_136766




Change Warning 2113.2114 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: