Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2291.2299
Procedure: perl_window_item_fill_hash
Trace: View
Modified: Wed Sep 2 11:57:26 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_window_item_fill_hash
 344 void perl_window_item_fill_hash(HV *hv, WI_ITEM_REC *item) 
 345 {
 346         char *type, *chat_type;
 347  
 348         g_return_if_fail(hv != NULL);
 349         g_return_if_fail(item != NULL);
 350  
 351         type = (char *) module_find_id_str("WINDOW ITEM TYPE", item->type);
true352         chat_type = (char *) chat_protocol_find_id(item->chat_type)->name;     /* Null Pointer Dereference */
Preconditions
$param_1 != 0
((char*)$param_2)[4] <= 0
Postconditions
_g_boolean_var_' = 1
_g_boolean_var_' = 1
hv' = $param_1
item' = $param_2
type' = &$unknown_1178156




Change Warning 2291.2299 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: