Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at windows-layout.c:63

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7336.28429
Procedure: sig_layout_restore_item
Trace: view
Modified: Thu Nov 26 11:09:40 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-common/core/windows-layout.c
   Enter sig_layout_restore_item
 48 static void sig_layout_restore_item(WINDOW_REC *window, const char *type,
 49                                     CONFIG_NODE *node) 
 50 {
 51         char *name, *tag, *chat_type;
 52  
 53         chat_type = config_node_get_str(node, "chat_type", NULL);
 54         name = config_node_get_str(node, "name", NULL);
 55         tag = config_node_get_str(node, "tag", NULL);
 56  
 57         if (name == NULL || tag == NULL)
 58                 return;
 59  
 60         if (g_ascii_strcasecmp(type, "CHANNEL") == 0) {
 61                 /* bind channel to window */ 
true62                 WINDOW_BIND_REC *rec = window_bind_add(window, tag, name);
rec <= 409563                 rec->sticky = TRUE;     /* Null Pointer Dereference */
Preconditions
window = 0
&$unknown_590778 != 0
&$unknown_590779 != 0
node->type <= 3
node->type >= 2
Postconditions
name' = &$unknown_590778
rec' = 0
tag' = &$unknown_590779




Change Warning 7336.28429 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: