Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at lastlog.c:286

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 4106.28054
Procedure: lastlog_init
Trace: view
Modified: Thu Nov 26 11:06:19 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-text/lastlog.c
   Enter lastlog_init
 276                                           "Could not write lastlog: %s", g_strerror(errno));
 277                         fclose(fhandle);
 278                 }
 279         }
 280  
 281         cmd_params_free(free_arg);
 282 }
 283  
 284 void lastlog_init(void) 
 285 {
Wrong Number of Parameters286         command_bind("lastlog", NULL, (SIGNAL_FUNC) cmd_lastlog);     /* Dangerous Function Cast */
 287  
 288         command_set_options("lastlog", "!- # force clear -file -window new away word regexp case count @a @after @before");
 289 } 
 290  
 291 void lastlog_deinit(void)
 292 {
 293         command_unbind("lastlog", (SIGNAL_FUNC) cmd_lastlog);   /* Dangerous Function Cast (ID: 4108.28055) */
 294 }




Change Warning 4106.28054 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: