Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-log.c:687

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 906.906
Procedure: read_settings
Trace: View
Modified: Wed Sep 2 11:37:41 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/core/fe-log.c
   Enter read_settings
 677  
 678         autolog_path = settings_get_str("autolog_path");
 679         autolog_level = !settings_get_bool("autolog") ? 0 : 
 680                 settings_get_level("autolog_level");
 681  
 682         if (old_autolog && !autolog_level)
 683                 autologs_close_all();
 684  
 685         /* write to log files with different theme? */ 
 686         if (log_theme_name != NULL)
Wrong Number of Parameters687                 signal_remove("print format", (SIGNAL_FUNC) sig_print_format);     /* Dangerous Function Cast */
 688         log_theme_name = settings_get_str("log_theme");
 689         if (*log_theme_name == '\0')   /* Null Pointer Dereference (ID: 2237.2243) */
 690                 log_theme_name = NULL;
 691         else 
 692                 signal_add("print format", (SIGNAL_FUNC) sig_print_format);   /* Dangerous Function Cast (ID: 905.905) */
 693  
 694         log_theme = log_theme_name == NULL ? NULL : 
 695                 theme_load(log_theme_name);
 696  
 697         log_file_create_mode = octal2dec(settings_get_int("log_create_mode"));




Change Warning 906.906 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: