Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at fe-windows.c:583

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2275.2281
Procedure: window_print_daychange
Trace: View
Modified: Wed Sep 2 11:55:46 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-windows.c
   Enter window_print_daychange
 572 static void window_print_daychange(WINDOW_REC *window, struct tm *tm) 
 573 {
 574         THEME_REC *theme;
 575         TEXT_DEST_REC dest;
 576         char *format, str[256];
 577         int ret;
 578  
 579         theme = active_win->theme != NULL ? active_win->theme : current_theme;
 580         format_create_dest(&dest, NULL, NULL, MSGLEVEL_NEVER, window);
 581         format = format_get_text_theme(theme, MODULE_NAME, &dest,
true582                                        TXT_DAYCHANGE);
format <= 4095583         ret = strftime(str, sizeof(str), format, tm);     /* Null Pointer Dereference */
Preconditions
$param_1 = 0
active_win->theme = 0
Postconditions
dest.window' != 0
dest.server_tag' = 0
dest.target' = 0
dest.level' = 67108864
dest.server' = 0
format' = 0
theme' = current_theme
tm' = $param_2
window' = $param_1




Change Warning 2275.2281 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: