Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at windows-layout.c:63

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2273.2279
Procedure: sig_layout_restore_item
Trace: View
Modified: Wed Sep 2 11:55: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
   /u1/paul/SATE/2010/c/irssi/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
$param_1 = 0
&$unknown_986484 != 0
&$unknown_986485 != 0
*$param_3 <= 3
*$param_3 >= 2
Postconditions
name' = &$unknown_986484
node' = $param_3
rec' = 0
tag' = &$unknown_986485
type' = $param_2
window' = $param_1




Change Warning 2273.2279 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: