Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at commands.c:922

Categories: LANG.MEM.NPD CWE:476
Warning ID: 4767.28239
Procedure: event_command
Trace: view
Modified: Thu Nov 26 11:08: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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/core/commands.c
   Enter event_command
 914 static void event_command(const char *line, SERVER_REC *server, void *item) 
 915 {
 916         char *cmdchar;
 917         int expand_aliases = TRUE;
 918  
 919         g_return_if_fail(line != NULL);
 920  
 921         cmdchar = *line == '\0' ? NULL : 
true922                 strchr(settings_get_str("cmdchars"), *line);     /* Null Pointer Dereference */
Preconditions
*line != 0
strlen(line) != 0
Postconditions
_g_boolean_var_' = 1
expand_aliases' = 1




Change Warning 4767.28239 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: