Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at completion.c:653

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7291.28379
Procedure: sig_complete_erase
Trace: view
Modified: Thu Nov 26 11:09:11 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/completion.c
   Enter sig_complete_erase
 642 static void sig_complete_erase(WINDOW_REC *window, const char *word,
 643                                const char *linestart) 
 644 {
 645         const char *cmdchars;
 646         char *line, *cmd, *args, *signal;
 647  
 648         if (*linestart == '\0')
 649                 return;
 650  
 651         /* we only want to check for commands */ 
true652         cmdchars = settings_get_str("cmdchars");
cmdchars <= 4095653         cmdchars = strchr(cmdchars, *linestart);     /* Null Pointer Dereference */
Preconditions
*linestart != 0
strlen(linestart) != 0
Postconditions
cmdchars' = 0




Change Warning 7291.28379 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: