Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 882.26328
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
 333  
 334         default_ban_type_str = g_strdup(settings_get_str("ban_type"));
 335 }
 336  
 337 void bans_init(void) 
 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) */
Wrong Number of Parameters343         command_bind_irc("unban", NULL, (SIGNAL_FUNC) cmd_unban);     /* Dangerous Function Cast */
 344         command_set_options("ban", "normal user host domain +custom");
 345         command_set_options("unban", "first last");
 346  
 347         read_settings();
 348         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 883.26329) */
 349 } 
 350  
 351 void bans_deinit(void)
 352 {
 353         g_free_not_null(default_ban_type_str);




Change Warning 882.26328 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: