diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-03-30 15:28:43 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-03-30 15:28:43 +0000 |
commit | c09459729a2249e129fce96d0d3eba86466e6493 (patch) | |
tree | 274ccdbb2ca076894a86698800b36d6e00534a3f /sal | |
parent | acc934a7ef780260483eed5677ae2772bc72baa5 (diff) |
INTEGRATION: CWS sb14 (1.2.18); FILE MERGED
2004/03/17 08:54:28 sb 1.2.18.2: RESYNC: (1.2-1.3); FILE MERGED
2004/03/11 14:41:31 sb 1.2.18.1: #i21150# rtl_string2UString and OUString::OUString(sal_Char const *, sal_Int32, rtl_TextEncoding, sal_uInt32) handle out-of-memory conditions.
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/file.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx index e3f391fb4fdd..087f512899a5 100644 --- a/sal/osl/unx/file.cxx +++ b/sal/osl/unx/file.cxx @@ -2,9 +2,9 @@ * * $RCSfile: file.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2004-03-09 11:18:59 $ + * last change: $Author: rt $ $Date: 2004-03-30 16:28:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -443,6 +443,7 @@ oslFileError SAL_CALL osl_getNextDirectoryItem(oslDirectory Directory, oslDirect /* convert file name to unicode */ rtl_string2UString( &ustrFileName, pEntry->d_name, strlen( pEntry->d_name ), osl_getThreadTextEncoding(), OSTRING_TO_OUSTRING_CVTFLAGS ); + OSL_ASSERT(ustrFileName != 0); osl_systemPathMakeAbsolutePath(pDirImpl->ustrPath, ustrFileName, &ustrFilePath); @@ -1454,6 +1455,7 @@ static oslFileError osl_psz_getVolumeInformation ( rtl_str_getLength(__OSL_STATFS_TYPENAME(sfs)), osl_getThreadTextEncoding(), OUSTRING_TO_OSTRING_CVTFLAGS); + OSL_ASSERT(pInfo->ustrFileSystemName != 0); pInfo->uValidFields |= osl_VolumeInfo_Mask_FileSystemName; } @@ -2068,6 +2070,7 @@ static rtl_uString* oslMakeUStrFromPsz(const sal_Char* pszStr, rtl_uString** ust rtl_str_getLength( pszStr ), osl_getThreadTextEncoding(), OUSTRING_TO_OSTRING_CVTFLAGS ); + OSL_ASSERT(*ustrValid != 0); return *ustrValid; } |