http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1158

*** shadow/1158 Fri Mar 30 07:48:41 2001
--- shadow/1158.tmp.16395       Fri Mar 30 07:48:41 2001
***************
*** 0 ****
--- 1,43 ----
+ +============================================================================+
+ | use PATH_MAX instead of fixed size 1024 buffer!                            |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1158                        Product: Xerces-C                |
+ |       Status: NEW                         Version: 1.4                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Linux                   |
+ |     Priority: Medium                    Component: Miscellaneous           |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                 |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ bug in xerces-c-src1_4_0/src/util/Platforms/Linux/LinuxPlatformUtils.cpp line 
+ 539 use PATH_MAX instead of fixed size 1024 buffer!
+ 
+ man realpath tells me:
+ 
+ NAME
+        realpath - return the canonicalized absolute pathname
+ 
+ SYNOPSIS
+        #include <limits.h>
+        #include <stdlib.h>
+ 
+        char *realpath(const char *path, char *resolved_path);
+ 
+ DESCRIPTION
+        realpath  expands  all symbolic links and resolves references to '/./', 
+ '/../' and extra '/' characters in the null terminated
+        string named by path and stores the canonicalized absolute pathname in 
+ the buffer of size  PATH_MAX  named  by  resolved_path.
+        The resulting path will have no symbolic link, '/./' or '/../' 
+ components.
+ 
+ 
+ and PATH_MAX is on my machine 4096 (on all cern linux installations), so the 
+ buffer of 1024 bytes is too small.
+ 
+ fix: simply use the PATH_MAX constant instead of 1024

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to