tdf#154285 Check upper bound of arguments in SbRtl_CreateObject
function Change-Id: I64ada278c0ba8d178f62f28c4e4e9911ce3f5d1b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195732 Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
committed by
Ilmari Lauhakangas
parent
a20dec704f
commit
0e6c78dcd6
@@ -186,7 +186,7 @@ static uno::Reference< ucb::XSimpleFileAccess3 > const & getFileAccess()
|
||||
|
||||
void SbRtl_CreateObject(StarBASIC * pBasic, SbxArray & rPar, bool)
|
||||
{
|
||||
if( rPar.Count() < 2 )
|
||||
if( rPar.Count() != 2 )
|
||||
return StarBASIC::Error( ERRCODE_BASIC_BAD_ARGUMENT );
|
||||
|
||||
OUString aClass(rPar.Get(1)->GetOUString());
|
||||
|
||||
Reference in New Issue
Block a user