tdf#154285 Check too many arguments to BASIC FILELEN function
Change-Id: I21704e84bed54ad4295d52d82eb4a92ff70a3abc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201298 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
committed by
Mike Kaganski
parent
04bc53cd7e
commit
356e1beec2
@@ -708,7 +708,7 @@ void SbRtl_Exp(StarBASIC *, SbxArray & rPar, bool)
|
||||
|
||||
void SbRtl_FileLen(StarBASIC *, SbxArray & rPar, bool)
|
||||
{
|
||||
if (rPar.Count() < 2)
|
||||
if (rPar.Count() != 2)
|
||||
{
|
||||
return StarBASIC::Error( ERRCODE_BASIC_BAD_ARGUMENT );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user