Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at statusbar-config.c:160

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7446.28554
Procedure: statusbar_read
Trace: view
Modified: Thu Nov 26 11:21:09 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-text/statusbar-config.c
   Enter statusbar_read
 144 static void statusbar_read(STATUSBAR_GROUP_REC *group, CONFIG_NODE *node) 
 145 {
 146         STATUSBAR_CONFIG_REC *bar;
 147         GSList *tmp;
 148         const char *visible_str;
 149  
 150         bar = statusbar_config_find(group, node->key);
 151         if (config_node_get_bool(node, "disabled", FALSE)) {
 152                 /* disabled, destroy it if it already exists */ 
 153                 if (bar != NULL)
 154                         statusbar_config_destroy(group, bar);
 155                 return;
 156         }
 157  
 158         if (bar == NULL) {
true159                 bar = statusbar_config_create(group, node->key);
bar <= 4095160                 bar->type = STATUSBAR_TYPE_ROOT;     /* Null Pointer Dereference */
Preconditions
group->config_bars >= 0
node->key = 0
node->type <= 3
node->type >= 2
Postconditions
bar' = 0




Change Warning 7446.28554 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: