Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at session.c:153

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2150.2153
Procedure: session_save_server
Trace: View
Modified: Wed Sep 2 11:51:34 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/core/session.c
   Enter session_save_server
 145 static void session_save_server(SERVER_REC *server, CONFIG_REC *config,
 146                                 CONFIG_NODE *node) 
 147 {
 148         int handle;
 149  
 150         node = config_node_section(node, NULL, NODE_TYPE_BLOCK);
 151  
 152         config_node_set_str(config, node, "chat_type",
true153                             chat_protocol_find_id(server->chat_type)->name);     /* Null Pointer Dereference */
Preconditions
((char*)$param_1)[4] <= 0
*$param_3 <= 3
*$param_3 >= 2
Postconditions
config' = $param_2
server' = $param_1




Change Warning 2150.2153 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: