Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at modes.c:922

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1237.26682
Procedure: modes_deinit
Trace: view
Modified: Thu Nov 26 10:59:35 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/modes.c
   Enter modes_deinit
 912         command_bind_irc("mode", NULL, (SIGNAL_FUNC) cmd_mode);   /* Dangerous Function Cast (ID: 1226.26672) */
 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: 1235.26674) */
 920         signal_remove("event 305", (SIGNAL_FUNC) event_unaway);   /* Dangerous Function Cast (ID: 1236.26673) */
 921         signal_remove("event 306", (SIGNAL_FUNC) event_away);   /* Dangerous Function Cast (ID: 1227.26683) */
Wrong Number of Parameters922         signal_remove("event 381", (SIGNAL_FUNC) event_oper);     /* Dangerous Function Cast */
 923         signal_remove("event mode", (SIGNAL_FUNC) event_mode);   /* Dangerous Function Cast (ID: 1228.26681) */
 924         signal_remove("requested usermode change", (SIGNAL_FUNC) sig_req_usermode_change);   /* Dangerous Function Cast (ID: 1229.26680) */
 925  
 926         command_unbind("op", (SIGNAL_FUNC) cmd_op);   /* Dangerous Function Cast (ID: 1230.26679) */
 927         command_unbind("deop", (SIGNAL_FUNC) cmd_deop);   /* Dangerous Function Cast (ID: 1231.26678) */
 928         command_unbind("voice", (SIGNAL_FUNC) cmd_voice);   /* Dangerous Function Cast (ID: 1233.26677) */
 929         command_unbind("devoice", (SIGNAL_FUNC) cmd_devoice);   /* Dangerous Function Cast (ID: 1232.26676) */
 930         command_unbind("mode", (SIGNAL_FUNC) cmd_mode);   /* Dangerous Function Cast (ID: 1234.26675) */
 931 } 




Change Warning 1237.26682 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: