persistentstorage/sql/SRC/Server/SqlSrvDbSysSettings.cpp
changeset 55 44f437012c90
parent 31 ba1c4f4a893f
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
   636 	HBufC8* buffer = HBufC8::NewLC(size);
   636 	HBufC8* buffer = HBufC8::NewLC(size);
   637 	TPtr8 bufPtr = buffer->Des();
   637 	TPtr8 bufPtr = buffer->Des();
   638 	__SQLLEAVE_IF_ERROR(file.Read(bufPtr));
   638 	__SQLLEAVE_IF_ERROR(file.Read(bufPtr));
   639 
   639 
   640 	//Convert buffer to Unicode for processing (the configuration file is expected to be ASCII or UTF-8)
   640 	//Convert buffer to Unicode for processing (the configuration file is expected to be ASCII or UTF-8)
       
   641 	// coverity[size_error]
   641 	HBufC16* buf16 = CnvUtfConverter::ConvertToUnicodeFromUtf8L(bufPtr);
   642 	HBufC16* buf16 = CnvUtfConverter::ConvertToUnicodeFromUtf8L(bufPtr);
   642 	CleanupStack::PushL(buf16);			
   643 	CleanupStack::PushL(buf16);			
   643 	TPtrC16 ptr16 = buf16->Des();
   644 	TPtrC16 ptr16 = buf16->Des();
   644 	
   645 	
   645 	//Skip the BOM (byte ordering mark) at the start if there is one
   646 	//Skip the BOM (byte ordering mark) at the start if there is one