Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at irc-commands.c:1041

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1031.26477
Procedure: irc_commands_init
Trace: view
Modified: Thu Nov 26 10:58:47 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/irc-commands.c
   Enter irc_commands_init
 1031         command_bind_irc("wallops", NULL, (SIGNAL_FUNC) command_1self);   /* Dangerous Function Cast (ID: 1027.26473) */
 1032         command_bind_irc("kickban", NULL, (SIGNAL_FUNC) cmd_kickban);   /* Dangerous Function Cast (ID: 1028.26474) */
 1033         command_bind_irc("knockout", NULL, (SIGNAL_FUNC) cmd_knockout);   /* Dangerous Function Cast (ID: 1029.26475) */
 1034         command_bind_irc("server purge", NULL, (SIGNAL_FUNC) cmd_server_purge);   /* Dangerous Function Cast (ID: 1030.26476) */
 1035  
 1036         signal_add("channel destroyed", (SIGNAL_FUNC) sig_channel_destroyed);   /* Dangerous Function Cast (ID: 1036.26482) */
 1037         signal_add("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);   /* Dangerous Function Cast (ID: 1035.26481) */
 1038         signal_add("whois try whowas", (SIGNAL_FUNC) sig_whois_try_whowas);   /* Dangerous Function Cast (ID: 1034.26480) */
 1039         signal_add("whois event", (SIGNAL_FUNC) event_whois);   /* Dangerous Function Cast (ID: 1033.26479) */
 1040         signal_add("whois end", (SIGNAL_FUNC) event_end_of_whois);   /* Dangerous Function Cast (ID: 1032.26478) */
Wrong Number of Parameters1041         signal_add("whowas event", (SIGNAL_FUNC) event_whowas);     /* Dangerous Function Cast */
 1042  
 1043         command_set_options("connect", "+ircnet");
 1044         command_set_options("topic", "delete");
 1045         command_set_options("list", "yes");
 1046         command_set_options("away", "one all");
 1047         command_set_options("whois", "yes");
 1048 } 
 1049  
 1050 void irc_commands_deinit(void)
 1051 {




Change Warning 1031.26477 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: