Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at bans.c:343

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 175.175
Procedure: bans_init
Trace: View
Modified: Wed Sep 2 11:32:34 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/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: 174.174) */
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: 176.176) */
 349 
 350  
 351 void bans_deinit(void)
 352 {
 353         g_free_not_null(default_ban_type_str);




Change Warning 175.175 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: