basic/source/runtime/methods.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 01d31536b5b2122e99cc00afc31f8b71f5e20718 Author: Simon Chenery <[email protected]> AuthorDate: Sun Dec 7 21:20:44 2025 +0100 Commit: Mike Kaganski <[email protected]> CommitDate: Mon Dec 8 05:16:29 2025 +0100 tdf#154285 Check too many arguments to BASIC EXP function Change-Id: I9963267c9b910a2a2346e27e7c8cb4220c0ab964 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195205 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index f3a11c283c4e..e88ad755a886 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -694,7 +694,7 @@ void SbRtl_SendKeys(StarBASIC *, SbxArray & rPar, bool) void SbRtl_Exp(StarBASIC *, SbxArray & rPar, bool) { - if (rPar.Count() < 2) + if (rPar.Count() != 2) return StarBASIC::Error( ERRCODE_BASIC_BAD_ARGUMENT ); double aDouble = rPar.Get(1)->GetDouble();
