Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at bans.c:348

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 883.26329
Procedure: bans_init
Trace: view
Modified: Thu Nov 26 10:58:12 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/irc/core/bans.c
   Enter bans_init
 338 {
 339         default_ban_type_str = NULL;
 340         settings_add_str("misc", "ban_type", "normal");
 341  
 342         command_bind_irc("ban", NULL, (SIGNAL_FUNC) cmd_ban);   /* Dangerous Function Cast (ID: 881.26327) */
 343         command_bind_irc("unban", NULL, (SIGNAL_FUNC) cmd_unban);   /* Dangerous Function Cast (ID: 882.26328) */
 344         command_set_options("ban", "normal user host domain +custom");
 345         command_set_options("unban", "first last");
 346  
 347         read_settings();
Wrong Number of Parameters348         signal_add("setup changed", (SIGNAL_FUNC) read_settings);     /* Dangerous Function Cast */
 349 } 
 350  
 351 void bans_deinit(void)
 352 {
 353         g_free_not_null(default_ban_type_str);
 354  
 355         command_unbind("ban", (SIGNAL_FUNC) cmd_ban);   /* Dangerous Function Cast (ID: 885.26331) */
 356         command_unbind("unban", (SIGNAL_FUNC) cmd_unban);   /* Dangerous Function Cast (ID: 886.26332) */
 357  
 358         signal_remove("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 884.26330) */




Change Warning 883.26329 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: