Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at printtext.c:153

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2264.2270
Procedure: printformat_module_gui_args
Trace: View
Modified: Wed Sep 2 11:55:15 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/printtext.c
   Enter printformat_module_gui_args
 133 void printformat_module_gui_args(const char *module, int formatnum, va_list va) 
 134 {
 135         TEXT_DEST_REC dest;
 136         char *arglist[MAX_FORMAT_PARAMS];
 137         char buffer[DEFAULT_FORMAT_ARGLIST_SIZE];
 138         FORMAT_REC *formats;
 139         char *str;
 140  
 141         g_return_if_fail(module != NULL);
 142  
 143         memset(&dest, 0, sizeof(dest));
 144  
 145         formats = g_hash_table_lookup(default_formats, module);
 146         format_read_arglist(va, &formats[formatnum],
 147                             arglist, sizeof(arglist)/sizeof(char *),
 148                             buffer, sizeof(buffer));
 149  
 150         str = format_get_text_theme_charargs(window_get_theme(dest.window),
 151                                              module, &dest,
true152                                              formatnum, arglist);
str <= 4095153         if (*str != '\0') format_send_to_gui(&dest, str);     /* Null Pointer Dereference */
Preconditions
$param_1 != 0
Postconditions
_g_boolean_var_' = 1
dest.window' = 0
formatnum' = $param_2
formats' = &$unknown_907143
module' = $param_1
str' = 0
va' = $param_3




Change Warning 2264.2270 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: