Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7282.28370
Procedure: sig_complete_away
Trace: view
Modified: Thu Nov 26 11:09:08 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/chat-completion.c
   Enter sig_complete_away
 862 static void sig_complete_away(GList **list, WINDOW_REC *window,
 863                                const char *word, const char *line,
 864                                int *want_space) 
 865 {
 866         const char *reason;
 867  
 868         g_return_if_fail(list != NULL);
 869         g_return_if_fail(word != NULL);
 870  
 871         *want_space = FALSE;
 872  
 873         if (*word == '\0' && window->active_server != NULL) {
true874                 reason = SERVER(window->active_server)->away_reason;     /* Null Pointer Dereference */
Preconditions
list != 0
*word = 0
strlen(word) = 0
Postconditions
_g_boolean_var_' = 1
_g_boolean_var_' = 1




Change Warning 7282.28370 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: