Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at set.c:44

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2261.2267
Procedure: config_node_remove
Trace: View
Modified: Wed Sep 2 11:55:08 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/keyboard.c
   Enter keyconfig_clear
 146 static void keyconfig_clear(const char *key) 
 147 {
 148         CONFIG_NODE *node;
 149  
 150         g_return_if_fail(key != NULL);
 151  
 152         /* remove old keyboard settings */ 
 153         node = key_config_find(key);
 154         if (node != NULL) {
 155                 iconfig_node_remove(iconfig_node_traverse("(keyboard", FALSE),
true156                                     node);
     /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/lib-config/set.c
     Enter keyconfig_clear / config_node_remove
((char*)$param_1)[24] <= 409535   void config_node_remove(CONFIG_REC *rec, CONFIG_NODE *parent, CONFIG_NODE *node) 
 36   {
 37           g_return_if_fail(node != NULL);
 38    
 39           if (parent == NULL)
rec->mainnode <= 409540                   parent = rec->mainnode;
 41    
 42           rec->modifycounter++;
 43           cache_remove(rec, node);
parent <= 409544           parent->value = g_slist_remove(parent->value, node);     /* Null Pointer Dereference */  /* 2 more... */
     Exit keyconfig_clear / config_node_remove
Preconditions
&$unknown_891734 != 0
mainconfig->mainnode = 0
Postconditions
mainconfig->modifycounter' = mainconfig->modifycounter + 1
_g_boolean_var_' = 1
_g_boolean_var_' = 1
key' = $param_1
node' = &$unknown_891734
node' = &$unknown_891734
parent' = mainconfig->mainnode
rec' = mainconfig




Change Warning 2261.2267 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: