Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at notify-commands.c:70

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 684.684
Procedure: notifylist_commands_init
Trace: View
Modified: Wed Sep 2 11:36:06 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/notifylist/notify-commands.c
   Enter notifylist_commands_init
 60                 return;
 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 {
Wrong Number of Parameters70         command_bind("notify", NULL, (SIGNAL_FUNC) cmd_notify);     /* Dangerous Function Cast */
 71         command_bind("unnotify", NULL, (SIGNAL_FUNC) cmd_unnotify);   /* Dangerous Function Cast (ID: 683.683) */
 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: 686.686) */
 79         command_unbind("unnotify", (SIGNAL_FUNC) cmd_unnotify);   /* Dangerous Function Cast (ID: 685.685) */
 80 }




Change Warning 684.684 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: