Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-notifylist.c:169

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1319.1319
Procedure: cmd_notifylist_show
Trace: View
Modified: Wed Sep 2 11:40:21 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/irc/notifylist/fe-notifylist.c
   Enter cmd_notifylist_show
 159  
 160         g_free_not_null(ircnets);
 161 }
 162  
 163 static void cmd_notifylist_show(void) 
 164 {
 165         if (notifies == NULL) {
 166                 printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
 167                             IRCTXT_NOTIFY_LIST_EMPTY);
 168         } else {
Wrong Number of Parameters169                 g_slist_foreach(notifies, (GFunc) notifylist_print, NULL);     /* Dangerous Function Cast */
 170         }
 171 
 172  
 173 static void cmd_notify(const char *data)
 174 {
 175         if (*data == '\0') {
 176                 cmd_notify_show();
 177                 signal_stop();
 178         }
 179  




Change Warning 1319.1319 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: