Kaydet (Commit) fcf23e8a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#706117 Allocation too small for type

Change-Id: I1bb2bd26e533cf5b7de5225f0bcf323446e69f63
üst def94cc4
...@@ -2074,8 +2074,8 @@ SbxObject* implCreateDialog( uno::Sequence< sal_Int8 > aData ) ...@@ -2074,8 +2074,8 @@ SbxObject* implCreateDialog( uno::Sequence< sal_Int8 > aData )
{ {
sal_Int8* pData = aData.getArray(); sal_Int8* pData = aData.getArray();
SvMemoryStream aMemStream( pData, aData.getLength(), STREAM_READ ); SvMemoryStream aMemStream( pData, aData.getLength(), STREAM_READ );
SbxObject* pDialog = (SbxObject*)SbxBase::Load( aMemStream ); SbxBase* pBase = SbxBase::Load( aMemStream );
return pDialog; return dynamic_cast<SbxObject*>(pBase);
} }
// HACK! Because this value is defined in basctl/inc/vcsbxdef.hxx // HACK! Because this value is defined in basctl/inc/vcsbxdef.hxx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment