Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 695.695
Procedure: notifylist_whois_init
Trace: View
Modified: Wed Sep 2 11:36:11 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
 128 /* last person that NOTIFY detected a signon for */ 
 129 static char *expando_lastnotify(SERVER_REC *server, void *item, int *free_ret)
 130 {
 131         return last_notify_nick;
 132 }
 133  
 134 void notifylist_whois_init(void) 
 135 {
 136         last_notify_nick = NULL;
 137  
Wrong Number of Parameters138         signal_add("notifylist event whois", (SIGNAL_FUNC) event_whois);     /* Dangerous Function Cast */
 139         signal_add("notifylist event whois away", (SIGNAL_FUNC) event_whois_away);   /* Dangerous Function Cast (ID: 696.696) */
 140         signal_add("notifylist event whois end", (SIGNAL_FUNC) event_whois_end);   /* Dangerous Function Cast (ID: 694.694) */
 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  




Change Warning 695.695 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: