jberry 2004/01/26 09:23:16 Modified: c/src/xercesc/util/Platforms/MacOS MacOSPlatformUtils.cpp Log: Add a check for a corner-case buffer condition Revision Changes Path 1.24 +2 -2 xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp Index: MacOSPlatformUtils.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- MacOSPlatformUtils.cpp 25 Jan 2004 23:30:07 -0000 1.23 +++ MacOSPlatformUtils.cpp 26 Jan 2004 17:23:16 -0000 1.24 @@ -825,7 +825,7 @@ // If it's a relative path, pre-pend the current directory to the path. // FSPathMakeRef doesn't deal with relativity on the front of the path - if (*p != '/') + if (*p != '/' && kMaxMacStaticPathChars > pathLen) { // Right justify the user path to make room for the pre-pended path std::memmove(p + kMaxMacStaticPathChars - pathLen, p, pathLen);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]