Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-events.c:457

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2725.27570
Procedure: fe_events_init
Trace: view
Modified: Thu Nov 26 11:03:22 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/irc/fe-events.c
   Enter fe_events_init
 447         signal_add("event topic", (SIGNAL_FUNC) event_topic);   /* Dangerous Function Cast (ID: 2687.27555) */
 448         signal_add("event error", (SIGNAL_FUNC) event_error);   /* Dangerous Function Cast (ID: 2685.27554) */
 449         signal_add("event wallops", (SIGNAL_FUNC) event_wallops);   /* Dangerous Function Cast (ID: 2682.27553) */
 450         signal_add("event silence", (SIGNAL_FUNC) event_silence);   /* Dangerous Function Cast (ID: 2679.27552) */
 451  
 452         signal_add("default event", (SIGNAL_FUNC) event_received);   /* Dangerous Function Cast (ID: 2677.27551) */
 453  
 454         signal_add("channel sync", (SIGNAL_FUNC) channel_sync);   /* Dangerous Function Cast (ID: 2733.27573) */
 455         signal_add("event connected", (SIGNAL_FUNC) event_connected);   /* Dangerous Function Cast (ID: 2730.27572) */
 456         signal_add("nickfind event whois", (SIGNAL_FUNC) event_nickfind_whois);   /* Dangerous Function Cast (ID: 2727.27571) */
Wrong Number of Parameters457         signal_add("ban type changed", (SIGNAL_FUNC) event_ban_type_changed);     /* Dangerous Function Cast */
 458         signal_add("whois event not found", (SIGNAL_FUNC) sig_whois_event_not_found);   /* Dangerous Function Cast (ID: 2723.27569) */
 459         signal_add("whowas event end", (SIGNAL_FUNC) sig_whowas_event_end);   /* Dangerous Function Cast (ID: 2720.27568) */
 460 } 
 461  
 462 void fe_events_deinit(void)
 463 {
 464         signal_remove("event privmsg", (SIGNAL_FUNC) event_privmsg);   /* Dangerous Function Cast (ID: 2749.27579) */
 465         signal_remove("ctcp action", (SIGNAL_FUNC) ctcp_action);   /* Dangerous Function Cast (ID: 2744.27577) */
 466         signal_remove("event notice", (SIGNAL_FUNC) event_notice);   /* Dangerous Function Cast (ID: 2741.27576) */
 467         signal_remove("event join", (SIGNAL_FUNC) event_join);   /* Dangerous Function Cast (ID: 2739.27575) */




Change Warning 2725.27570 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: