Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at log-away.c:47

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2118.2119
Procedure: awaylog_open
Trace: View
Modified: Wed Sep 2 11:51:20 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-away.c
   Enter awaylog_open
 39 static void awaylog_open(void) 
 40 {
 41         const char *fname;
 42         LOG_REC *log;
 43         int level;
 44  
true45         fname = settings_get_str("awaylog_file");
 46         level = settings_get_level("awaylog_level");
fname <= 409547         if (*fname == '\0' || level == 0) return;     /* Null Pointer Dereference */
Postconditions
fname' = 0
level' = 0




Change Warning 2118.2119 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: