Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-server.c:393

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1977.27193
Procedure: fe_server_deinit
Trace: view
Modified: Thu Nov 26 11:01:44 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/fe-common/core/fe-server.c
   Enter fe_server_deinit
 383         signal_add("server lag disconnect", (SIGNAL_FUNC) sig_server_lag_disconnected);   /* Dangerous Function Cast (ID: 1941.27176) */
 384         signal_add("server reconnect remove", (SIGNAL_FUNC) sig_server_reconnect_removed);   /* Dangerous Function Cast (ID: 1938.27175) */
 385         signal_add("server reconnect not found", (SIGNAL_FUNC) sig_server_reconnect_not_found);   /* Dangerous Function Cast (ID: 1935.27174) */
 386  
 387         signal_add("chat protocol unknown", (SIGNAL_FUNC) sig_chat_protocol_unknown);   /* Dangerous Function Cast (ID: 1933.27173) */
 388 }
 389  
 390 void fe_server_deinit(void) 
 391 {
 392         command_unbind("server", (SIGNAL_FUNC) cmd_server);   /* Dangerous Function Cast (ID: 1979.27194) */
Wrong Number of Parameters393         command_unbind("server connect", (SIGNAL_FUNC) cmd_server_connect);     /* Dangerous Function Cast */
 394         command_unbind("server add", (SIGNAL_FUNC) cmd_server_add);   /* Dangerous Function Cast (ID: 1974.27192) */
 395         command_unbind("server remove", (SIGNAL_FUNC) cmd_server_remove);   /* Dangerous Function Cast (ID: 1971.27191) */
 396         command_unbind("server", (SIGNAL_FUNC) server_command);   /* Dangerous Function Cast (ID: 1969.27190) */
 397         command_unbind("disconnect", (SIGNAL_FUNC) server_command);   /* Dangerous Function Cast (ID: 1966.27189) */
 398  
 399         signal_remove("server looking", (SIGNAL_FUNC) sig_server_looking);   /* Dangerous Function Cast (ID: 1964.27188) */
 400         signal_remove("server connecting", (SIGNAL_FUNC) sig_server_connecting);   /* Dangerous Function Cast (ID: 1961.27187) */
 401         signal_remove("server connected", (SIGNAL_FUNC) sig_server_connected);   /* Dangerous Function Cast (ID: 1959.27186) */
 402         signal_remove("server connect failed", (SIGNAL_FUNC) sig_connect_failed);   /* Dangerous Function Cast (ID: 1956.27185) */
 403         signal_remove("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);   /* Dangerous Function Cast (ID: 1955.27184) */




Change Warning 1977.27193 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: