Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at perl-signals.c:342

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1688.1688
Procedure: perl_call_signal
Trace: View
Modified: Wed Sep 2 11:44:36 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-signals.c
   Enter perl_call_signal
 332                                 sv = av_shift(av);
 333                                 if (SvPOKp(sv))
 334                                         val = g_strdup(SvPV(sv, len));
 335                                 else 
 336                                         val = GINT_TO_POINTER(SvIV(sv));
 337  
 338                                 out = g_list_append(out, val);
 339                         }
 340  
 341                         if (strcmp(rec->args[n]+9, "char*") == 0)
Wrong Number of Parameters342                                 g_list_foreach(*ret, (GFunc) g_free, NULL);     /* Dangerous Function Cast */
 343                         g_list_free(*ret);
 344                         *ret = out;
 345                 }
 346         }
 347  
 348         PUTBACK;
 349         FREETMPS;
 350         LEAVE;
 351 
 352  




Change Warning 1688.1688 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: