Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at misc.c:433

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2279.2287
Procedure: convert_home
Trace: View
Modified: Wed Sep 2 11:55:54 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/irc/dcc/fe-dcc-send.c
   Enter sig_dcc_send_complete
 116 static void sig_dcc_send_complete(GList **list, WINDOW_REC *window,
 117                                   const char *word, const char *line,
 118                                   int *want_space) 
 119 {
 120         char *path;
 121  
 122         g_return_if_fail(list != NULL);
 123         g_return_if_fail(word != NULL);
 124         g_return_if_fail(line != NULL);
 125  
 126         if (*line == '\0' || strchr(line, ' ') != NULL)
 127                 return;
 128  
 129         /* completing filename parameter for /DCC SEND */ 
true130         path = convert_home(settings_get_str("dcc_upload_path"));
     /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/core/misc.c
     Enter sig_dcc_send_complete / convert_home
$param_1 <= 4095429   char *convert_home(const char *path) 
 430   {
 431           const char *home;
 432    
path <= 4095433           if (*path == '~' && (*(path+1) == '/' || *(path+1) == '\0')) {     /* Null Pointer Dereference */  /* 2 more... */
     Exit sig_dcc_send_complete / convert_home
Preconditions
$param_1 != 0
$param_3 != 0
*$param_4 != 0
strlen($param_4) != 0
Postconditions
_g_boolean_var_' = 1
_g_boolean_var_' = 1
_g_boolean_var_' = 1
line' = $param_4
list' = $param_1
path' = 0
want_space' = $param_5
window' = $param_2
word' = $param_3




Change Warning 2279.2287 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: