Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-windows.c:643

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2370.27362
Procedure: read_settings
Trace: view
Modified: Thu Nov 26 11:02:27 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/core/fe-windows.c
   Enter read_settings
 633 }
 634  
 635 static void read_settings(void) 
 636 {
 637         if (daytag != -1) {
 638                 g_source_remove(daytag);
 639                 daytag = -1;
 640         }
 641  
 642         if (settings_get_bool("timestamps"))
Wrong Number of Parameters643                 daytag = g_timeout_add(30000, (GSourceFunc) sig_check_daychange, NULL);     /* Dangerous Function Cast */
 644 } 
 645  
 646 void windows_init(void)
 647 {
 648         active_win = NULL;
 649         daycheck = 0; daytag = -1;
 650         settings_add_bool("lookandfeel", "window_auto_change", FALSE);
 651         settings_add_bool("lookandfeel", "windows_auto_renumber", TRUE);
 652         settings_add_bool("lookandfeel", "window_check_level_first", FALSE);
 653         settings_add_level("lookandfeel", "window_default_level", "NONE");




Change Warning 2370.27362 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: