Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at fe-log.c:689

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2237.2243
Procedure: read_settings
Trace: View
Modified: Wed Sep 2 11:53:59 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
 673 static void read_settings(void) 
 674 {
 675         int old_autolog = autolog_level;
 676         int log_file_create_mode;
 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)
 687                 signal_remove("print format", (SIGNAL_FUNC) sig_print_format);   /* Dangerous Function Cast (ID: 906.906) */
true688         log_theme_name = settings_get_str("log_theme");
log_theme_name <= 4095689         if (*log_theme_name == '\0')     /* Null Pointer Dereference */
Preconditions
&$unknown_700638 != 0
((char*)logs->data)[64] != 0
logs->next = 0
autolog_level != 0
log_theme_name != 0
Postconditions
autolog_level' = 0
log_theme_name' = 0
old_autolog' = autolog_level




Change Warning 2237.2243 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: