Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at notify-whois.c:140

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 694.694
Procedure: notifylist_whois_init
Trace: View
Modified: Wed Sep 2 11:36:10 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/irc/notifylist/notify-whois.c
   Enter notifylist_whois_init
 130 {
 131         return last_notify_nick;
 132 }
 133  
 134 void notifylist_whois_init(void) 
 135 {
 136         last_notify_nick = NULL;
 137  
 138         signal_add("notifylist event whois", (SIGNAL_FUNC) event_whois);   /* Dangerous Function Cast (ID: 695.695) */
 139         signal_add("notifylist event whois away", (SIGNAL_FUNC) event_whois_away);   /* Dangerous Function Cast (ID: 696.696) */
Wrong Number of Parameters140         signal_add("notifylist event whois end", (SIGNAL_FUNC) event_whois_end);     /* Dangerous Function Cast */
 141         expando_create("D", expando_lastnotify,
 142                        "notifylist event whois", EXPANDO_ARG_SERVER, NULL);
 143 
 144  
 145 void notifylist_whois_deinit(void)
 146 {
 147         g_free_not_null(last_notify_nick);
 148  
 149         signal_remove("notifylist event whois", (SIGNAL_FUNC) event_whois);   /* Dangerous Function Cast (ID: 699.699) */
 150         signal_remove("notifylist event whois away", (SIGNAL_FUNC) event_whois_away);   /* Dangerous Function Cast (ID: 698.698) */




Change Warning 694.694 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: