Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at perl-fe.c:250

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1708.1708
Procedure: fe_perl_init
Trace: View
Modified: Wed Sep 2 11:44:44 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-fe.c
   Enter fe_perl_init
 240 }
 241  
 242 void fe_perl_init(void) 
 243 {
 244         theme_register(feperl_formats);
 245  
 246         command_bind("script", NULL, (SIGNAL_FUNC) cmd_script);   /* Dangerous Function Cast (ID: 1712.1712) */
 247         command_bind("script exec", NULL, (SIGNAL_FUNC) cmd_script_exec);   /* Dangerous Function Cast (ID: 1711.1711) */
 248         command_bind("script load", NULL, (SIGNAL_FUNC) cmd_script_load);   /* Dangerous Function Cast (ID: 1710.1710) */
 249         command_bind("script unload", NULL, (SIGNAL_FUNC) cmd_script_unload);   /* Dangerous Function Cast (ID: 1709.1709) */
Wrong Number of Parameters250         command_bind("script reset", NULL, (SIGNAL_FUNC) cmd_script_reset);     /* Dangerous Function Cast */
 251         command_bind("script list", NULL, (SIGNAL_FUNC) cmd_script_list);   /* Dangerous Function Cast (ID: 1707.1707) */
 252         command_bind("load", NULL, (SIGNAL_FUNC) cmd_load);   /* Dangerous Function Cast (ID: 1706.1706) */
 253         command_set_options("script exec", "permanent");
 254  
 255         signal_add("script error", (SIGNAL_FUNC) sig_script_error);   /* Dangerous Function Cast (ID: 1705.1705) */
 256         signal_add("complete command script load", (SIGNAL_FUNC) sig_complete_load);   /* Dangerous Function Cast (ID: 1704.1704) */
 257         signal_add("complete command script unload", (SIGNAL_FUNC) sig_complete_unload);   /* Dangerous Function Cast (ID: 1703.1703) */
 258  
 259         perl_core_print_script_error(FALSE);
 260         module_register("perl", "fe");




Change Warning 1708.1708 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: