pyuno/source/module/pyuno_service_constructor.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 80d1e263628b502ed75b91a4745451bc7fe64789
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Mar 6 16:46:19 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Mar 6 20:09:18 2026 +0100

    cid#1684051 Overflowed integer argument
    
    Change-Id: Ia2e3dc9b80f5bead409701a932b8e0c78baa1524
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201144
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>

diff --git a/pyuno/source/module/pyuno_service_constructor.cxx 
b/pyuno/source/module/pyuno_service_constructor.cxx
index 6374b7092797..195a87ac3ca6 100644
--- a/pyuno/source/module/pyuno_service_constructor.cxx
+++ b/pyuno/source/module/pyuno_service_constructor.cxx
@@ -18,6 +18,7 @@
  */
 #include "pyuno_impl.hxx"
 
+#include <cassert>
 #include <vector>
 #include <osl/diagnose.h>
 #include <rtl/ustrbuf.hxx>
@@ -140,6 +141,8 @@ PyObject* PyUNO_service_constructor_call(PyObject* self, 
PyObject* args,
             return nullptr;
         }
 
+        assert(nParams > 0
+               && "nParams >= 1 after bounds check against nMinParams which is 
always >= 1");
         css::uno::Sequence<css::uno::Any> aParams(nParams - 1);
         css::uno::Any* pParams = aParams.getArray();
 

Reply via email to