Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2254.2260
Procedure: sig_print_format
Trace: View
Modified: Wed Sep 2 11:54:37 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 sig_print_format
 540 static void sig_print_format(THEME_REC *theme, const char *module,
 541                              TEXT_DEST_REC *dest, void *formatnum, char **args) 
 542 {
 543         char *str, *linestart, *tmp;
 544  
 545         if (log_theme == NULL) {
 546                 /* theme isn't loaded for some reason (/reload destroys it),
 547                    reload it. */ 
 548                 log_theme = theme_load(log_theme_name);
 549                 if (log_theme == NULL) return;
 550         }
 551  
 552         if (theme == log_theme)
 553                 return;
 554  
 555         str = format_get_text_theme_charargs(log_theme, module, dest,
true556                                              GPOINTER_TO_INT(formatnum), args);
 557         skip_next_printtext = TRUE;
 558  
str <= 4095559         if (*str != '\0') {     /* Null Pointer Dereference */
Preconditions
((char*)$unknown_810935)[8] != $param_1
log_theme = 0
Postconditions
args' = $param_5
dest' = $param_3
errno' != 0
formatnum' = $param_4
log_theme' = ((char*)$unknown_810935)[8]
module' = $param_2
skip_next_printtext' = 1
str' = 0
theme' = $param_1




Change Warning 2254.2260 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: