Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at modes.c:910

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 517.517
Procedure: modes_init
Trace: View
Modified: Wed Sep 2 11:34:56 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/modes.c
   Enter modes_init
 900  
 901         signal_add("event 221", (SIGNAL_FUNC) event_user_mode);   /* Dangerous Function Cast (ID: 516.516) */
 902         signal_add("event 305", (SIGNAL_FUNC) event_unaway);   /* Dangerous Function Cast (ID: 514.514) */
 903         signal_add("event 306", (SIGNAL_FUNC) event_away);   /* Dangerous Function Cast (ID: 513.513) */
 904         signal_add("event 381", (SIGNAL_FUNC) event_oper);   /* Dangerous Function Cast (ID: 512.512) */
 905         signal_add("event mode", (SIGNAL_FUNC) event_mode);   /* Dangerous Function Cast (ID: 510.510) */
 906         signal_add("requested usermode change", (SIGNAL_FUNC) sig_req_usermode_change);   /* Dangerous Function Cast (ID: 509.509) */
 907  
 908         command_bind_irc("op", NULL, (SIGNAL_FUNC) cmd_op);   /* Dangerous Function Cast (ID: 511.511) */
 909         command_bind_irc("deop", NULL, (SIGNAL_FUNC) cmd_deop);   /* Dangerous Function Cast (ID: 515.515) */
Wrong Number of Parameters910         command_bind_irc("voice", NULL, (SIGNAL_FUNC) cmd_voice);     /* Dangerous Function Cast */
 911         command_bind_irc("devoice", NULL, (SIGNAL_FUNC) cmd_devoice);   /* Dangerous Function Cast (ID: 518.518) */
 912         command_bind_irc("mode", NULL, (SIGNAL_FUNC) cmd_mode);   /* Dangerous Function Cast (ID: 519.519) */
 913  
 914         command_set_options("op", "yes");
 915 
 916  
 917 void modes_deinit(void)
 918 {
 919         signal_remove("event 221", (SIGNAL_FUNC) event_user_mode);   /* Dangerous Function Cast (ID: 528.528) */
 920         signal_remove("event 305", (SIGNAL_FUNC) event_unaway);   /* Dangerous Function Cast (ID: 529.529) */




Change Warning 517.517 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: