Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at chat-completion.c:874

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2217.2223
Procedure: sig_complete_away
Trace: View
Modified: Wed Sep 2 11:52:59 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/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
$param_1 != 0
*$param_3 = 0
strlen($param_3) = 0
Postconditions
_g_boolean_var_' = 1
_g_boolean_var_' = 1
line' = $param_4
list' = $param_1
want_space' = $param_5
window' = $param_2
word' = $param_3




Change Warning 2217.2223 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: