Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7312.28404
Procedure: cmd_window_logfile
Trace: view
Modified: Thu Nov 26 11:09:24 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/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
data = 0
logs->data >= 0
Postconditions
log' = 0




Change Warning 7312.28404 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: