Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-server.c:394

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1040.1040
Procedure: fe_server_deinit
Trace: View
Modified: Wed Sep 2 11:38:33 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/fe-common/core/fe-server.c
   Enter fe_server_deinit
 384         signal_add("server reconnect remove", (SIGNAL_FUNC) sig_server_reconnect_removed);   /* Dangerous Function Cast (ID: 1023.1023) */
 385         signal_add("server reconnect not found", (SIGNAL_FUNC) sig_server_reconnect_not_found);   /* Dangerous Function Cast (ID: 1022.1022) */
 386  
 387         signal_add("chat protocol unknown", (SIGNAL_FUNC) sig_chat_protocol_unknown);   /* Dangerous Function Cast (ID: 1021.1021) */
 388 }
 389  
 390 void fe_server_deinit(void) 
 391 {
 392         command_unbind("server", (SIGNAL_FUNC) cmd_server);   /* Dangerous Function Cast (ID: 1042.1042) */
 393         command_unbind("server connect", (SIGNAL_FUNC) cmd_server_connect);   /* Dangerous Function Cast (ID: 1041.1041) */
Wrong Number of Parameters394         command_unbind("server add", (SIGNAL_FUNC) cmd_server_add);     /* Dangerous Function Cast */
 395         command_unbind("server remove", (SIGNAL_FUNC) cmd_server_remove);   /* Dangerous Function Cast (ID: 1039.1039) */
 396         command_unbind("server", (SIGNAL_FUNC) server_command);   /* Dangerous Function Cast (ID: 1038.1038) */
 397         command_unbind("disconnect", (SIGNAL_FUNC) server_command);   /* Dangerous Function Cast (ID: 1037.1037) */
 398  
 399         signal_remove("server looking", (SIGNAL_FUNC) sig_server_looking);   /* Dangerous Function Cast (ID: 1036.1036) */
 400         signal_remove("server connecting", (SIGNAL_FUNC) sig_server_connecting);   /* Dangerous Function Cast (ID: 1035.1035) */
 401         signal_remove("server connected", (SIGNAL_FUNC) sig_server_connected);   /* Dangerous Function Cast (ID: 1034.1034) */
 402         signal_remove("server connect failed", (SIGNAL_FUNC) sig_connect_failed);   /* Dangerous Function Cast (ID: 1033.1033) */
 403         signal_remove("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);   /* Dangerous Function Cast (ID: 1032.1032) */
 404         signal_remove("server quit", (SIGNAL_FUNC) sig_server_quit);   /* Dangerous Function Cast (ID: 1031.1031) */




Change Warning 1040.1040 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: