Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2201.2206
Procedure: convert_home
Trace: View
Modified: Wed Sep 2 11:52:20 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/irc/dcc/dcc-send.c
   Enter dcc_send_get_file
 74 static char *dcc_send_get_file(const char *fname) 
 75 {
 76         char *str, *path;
 77  
 78         str = convert_home(fname);
 79         if (!g_path_is_absolute(str)) {
 80                 /* full path not given to file, use dcc_upload_path */ 
 81                 g_free(str);
 82  
true83                 path = convert_home(settings_get_str("dcc_upload_path"));
     /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/core/misc.c
     Enter dcc_send_get_file / 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 dcc_send_get_file / convert_home
Preconditions
((char*)$param_1)[1] <= 47
((char*)$param_1)[1] >= 0
*$param_1 = 126
strlen($param_1) != 0
Postconditions
fname' = $param_1
path' = 0
str' = &$unknown_532647




Change Warning 2201.2206 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: