pEmpty is completely insane to use
DbtToStringConverter protects against a NULL pointer, but not a pointer to the too short data that pEmpty provides Change-Id: I5d21e852ce0373eff7d3627e266b9cbc77f5dd09
This commit is contained in:
@@ -746,15 +746,13 @@ void KeywordInfo::KeywordElement::init( Databases *pDatabases,helpdatafileproxy:
|
|||||||
listAnchor.realloc( id.size() );
|
listAnchor.realloc( id.size() );
|
||||||
listTitle.realloc( id.size() );
|
listTitle.realloc( id.size() );
|
||||||
|
|
||||||
const sal_Char* pData = NULL;
|
|
||||||
const sal_Char pEmpty[] = "";
|
|
||||||
|
|
||||||
for( sal_uInt32 i = 0; i < id.size(); ++i )
|
for( sal_uInt32 i = 0; i < id.size(); ++i )
|
||||||
{
|
{
|
||||||
listId[i] = id[i];
|
listId[i] = id[i];
|
||||||
listAnchor[i] = anchor[i];
|
listAnchor[i] = anchor[i];
|
||||||
|
|
||||||
pData = pEmpty;
|
const sal_Char* pData = NULL;
|
||||||
|
|
||||||
if( pHdf )
|
if( pHdf )
|
||||||
{
|
{
|
||||||
OString idi( id[i].getStr(),id[i].getLength(),RTL_TEXTENCODING_UTF8 );
|
OString idi( id[i].getStr(),id[i].getLength(),RTL_TEXTENCODING_UTF8 );
|
||||||
|
Reference in New Issue
Block a user