Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at themes.c:1294

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2271.2277
Procedure: read_settings
Trace: View
Modified: Wed Sep 2 11:55:29 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/themes.c
   Enter read_settings
 1287 static void read_settings(void) 
 1288 {
 1289         const char *theme;
 1290         int len;
 1291  
true1292         theme = settings_get_str("theme");
 1293         len = strlen(current_theme->name);
theme <= 40951294         if (strcmp(current_theme->name, theme) != 0 &&     /* Null Pointer Dereference */
Preconditions
*current_theme->name = 0
strlen(current_theme->name) = 0
Postconditions
len' = strlen(current_theme->name)
theme' = 0




Change Warning 2271.2277 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: