Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at perl-common.c:264

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2289.2297
Procedure: perl_chatnet_fill_hash
Trace: View
Modified: Wed Sep 2 11:57:17 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/perl/perl-common.c
   Enter perl_chatnet_fill_hash
 256 void perl_chatnet_fill_hash(HV *hv, CHATNET_REC *chatnet) 
 257 {
 258         char *type, *chat_type;
 259  
 260         g_return_if_fail(hv != NULL);
 261         g_return_if_fail(chatnet != NULL);
 262  
 263         type = "CHATNET";
true264         chat_type = (char *) chat_protocol_find_id(chatnet->chat_type)->name;     /* Null Pointer Dereference */
Preconditions
$param_1 != 0
((char*)$param_2)[4] <= 0
Postconditions
_g_boolean_var_' = 1
_g_boolean_var_' = 1
chatnet' = $param_2
hv' = $param_1
type' = &#string25[0]




Change Warning 2289.2297 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: