basic/source/runtime/methods.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6586dbe9569be562c5be1982d488417fb08b082e Author: Simon Chenery <simon_chen...@yahoo.com> AuthorDate: Tue Feb 11 17:59:27 2025 +0100 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Wed Feb 12 07:41:21 2025 +0100 tdf#154285 Check too many arguments to SbRtl_Abs() for BASIC ABS function Change-Id: I82f1df998afca37f5e14baacc9c36339596724ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181447 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index d9cdd59cd053..e1353bb5d66d 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -287,7 +287,7 @@ void SbRtl_Atn(StarBASIC *, SbxArray & rPar, bool) void SbRtl_Abs(StarBASIC *, SbxArray & rPar, bool) { - if (rPar.Count() < 2) + if (rPar.Count() != 2) return StarBASIC::Error( ERRCODE_BASIC_BAD_ARGUMENT ); SbxVariableRef pArg = rPar.Get(1);