Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at perl-sources.c:141

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3555.27844
Procedure: perl_input_add
Trace: view
Modified: Thu Nov 26 11:05:01 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/perl/perl-sources.c
   Enter perl_input_add
 131  
 132         rec = g_new0(PERL_SOURCE_REC, 1);
 133         perl_source_ref(rec);
 134  
 135         rec->once = once;
 136         rec->script =script;
 137         rec->func = perl_func_sv_inc(func, pkg);
 138         rec->data = SvREFCNT_inc(data);
 139  
 140         rec->tag = g_input_add_poll(source, G_PRIORITY_DEFAULT, condition,
Return Type Differs in Size; Cast from 4 to 0.141                                (GInputFunction) perl_source_event, rec);     /* Dangerous Function Cast */
 142  
 143         perl_sources = g_slist_append(perl_sources, rec);
 144         return rec->tag;
 145 } 
 146  
 147 void perl_source_remove(int tag)
 148 {
 149         GSList *tmp;
 150  
 151         for (tmp = perl_sources; tmp != NULL; tmp = tmp->next) {




Change Warning 3555.27844 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: