Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at misc.c:433

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7342.28437
Procedure: convert_home
Trace: view
Modified: Thu Nov 26 11:09:42 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/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"));
     /kat0/fletcher/SATE/2010/irssi-0.8.14/src/core/misc.c
     Enter sig_dcc_send_complete / convert_home
 429   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
path != 0
$param_3 != 0
*$param_4 != 0
*$param_4 != 32
strlen($param_4) != 0
Postconditions
_g_boolean_var_' = 1
_g_boolean_var_' = 1
_g_boolean_var_' = 1
path' = 0




Change Warning 7342.28437 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: