Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at statusbar-config.c:160

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2389.2401
Procedure: statusbar_read
Trace: View
Modified: Wed Sep 2 12:23: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
   /u1/paul/SATE/2010/c/irssi/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
((char*)$param_1)[8] >= 0
((char*)$param_2)[8] = 0
*$param_2 <= 3
*$param_2 >= 2
Postconditions
bar' = 0
group' = $param_1
node' = $param_2




Change Warning 2389.2401 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: