Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at fe-log.c:338

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2247.2253
Procedure: cmd_window_logfile
Trace: View
Modified: Wed Sep 2 11:54:33 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/fe-common/core/fe-log.c
   Enter cmd_window_logfile
 324 static void cmd_window_logfile(const char *data) 
 325 {
 326         LOG_REC *log;
 327         char window[MAX_INT_STRLEN];
 328  
 329         ltoa(window, active_win->refnum);
 330         log = logs_find_item(LOG_ITEM_WINDOW_REFNUM, window, NULL, NULL);
 331  
 332         if (log != NULL) {
 333                 printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, TXT_WINDOWLOG_FILE_LOGGING);
 334                 return;
 335         }
 336  
true337         log = log_create_rec(data, MSGLEVEL_ALL);
log <= 4095338         log->colorizer = log_colorizer_strip;     /* Null Pointer Dereference */
Preconditions
$param_1 = 0
logs->data >= 0
Postconditions
data' = $param_1
log' = 0




Change Warning 2247.2253 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: