Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at perl-sources.c:141

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1692.1692
Procedure: perl_input_add
Trace: View
Modified: Wed Sep 2 11:44:38 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-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 1692.1692 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: