Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at fe-core-commands.c:210

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2239.2245
Procedure: event_command
Trace: View
Modified: Wed Sep 2 11:54:13 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-core-commands.c
   Enter event_command
 193 static void event_command(const char *data) 
 194 {
 195         const char *cmdchar;
 196  
 197         /* save current command line */ 
 198         current_cmdline = data;
 199  
 200         /* for detecting if we're pasting text */ 
 201         time_command_last = time_command_now;
 202         last_command_cmd = command_cmd;
 203  
 204         g_get_current_time(&time_command_now);
 205         command_cmd = *data != '\0' && 
 206                 strchr(settings_get_str("cmdchars"), *data) != NULL;   /* Null Pointer Dereference (ID: 2240.2246) */
 207  
 208         /* /^command hides the output of the command */ 
 209         cmdchar = *data == '\0' ? NULL : 
true210                 strchr(settings_get_str("cmdchars"), *data);     /* Null Pointer Dereference */
Preconditions
*$param_1 != 0
strlen($param_1) != 0
Postconditions
command_cmd' = 0
current_cmdline' = $param_1
data' = $param_1
last_command_cmd' = command_cmd
time_command_last.tv_sec' = time_command_now.tv_sec
time_command_last.tv_usec' = time_command_now.tv_usec




Change Warning 2239.2245 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: