Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at fe-core-commands.c:206

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7305.28394
Procedure: event_command
Trace: view
Modified: Thu Nov 26 11:09:20 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
   /kat0/fletcher/SATE/2010/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' && 
true206                 strchr(settings_get_str("cmdchars"), *data) != NULL;     /* Null Pointer Dereference */
Preconditions
*data != 0
strlen(data) != 0
Postconditions
current_cmdline' = data
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 7305.28394 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: