Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at notify-commands.c:71

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1389.26835
Procedure: notifylist_commands_init
Trace: view
Modified: Thu Nov 26 11:00: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/notifylist/notify-commands.c
   Enter notifylist_commands_init
 61         if (*mask == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
 62  
 63         notifylist_remove(mask);
 64  
 65         cmd_params_free(free_arg);
 66 }
 67  
 68 void notifylist_commands_init(void) 
 69 {
 70         command_bind("notify", NULL, (SIGNAL_FUNC) cmd_notify);   /* Dangerous Function Cast (ID: 1390.26836) */
Wrong Number of Parameters71         command_bind("unnotify", NULL, (SIGNAL_FUNC) cmd_unnotify);     /* Dangerous Function Cast */
 72  
 73         command_set_options("notify", "away");
 74 } 
 75  
 76 void notifylist_commands_deinit(void)
 77 {
 78         command_unbind("notify", (SIGNAL_FUNC) cmd_notify);   /* Dangerous Function Cast (ID: 1392.26838) */
 79         command_unbind("unnotify", (SIGNAL_FUNC) cmd_unnotify);   /* Dangerous Function Cast (ID: 1391.26837) */
 80 }




Change Warning 1389.26835 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: