diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-03 09:33:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-04 20:30:58 +0200 |
commit | 037efad7b73f183a5d54808fa12c519276a8e7ce (patch) | |
tree | 018e3a1a5addc4af750d9e4c81409ace0f9709cd /cppuhelper/source | |
parent | ed75a40d3c971ed9b74a0a130d9d082bdf751589 (diff) |
cid#1607024 silence Overflowed constant
and
cid#1607900 silence Overflowed constant
Change-Id: I18ef4b6885f872697c272b9fedc6a3e92a0df587
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174492
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'cppuhelper/source')
-rw-r--r-- | cppuhelper/source/servicemanager.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cppuhelper/source/servicemanager.cxx b/cppuhelper/source/servicemanager.cxx index ddc8afcda681..295ca5a034e9 100644 --- a/cppuhelper/source/servicemanager.cxx +++ b/cppuhelper/source/servicemanager.cxx @@ -1466,6 +1466,7 @@ OUString cppuhelper::ServiceManager::readLegacyRdbString( } OUString val; std::vector< char > v(s); // assuming sal_uInt32 fits into vector::size_type + assert(s > 0 && "throw above otherwise"); if (subkey.getValue(OUString(), v.data()) != RegError::NO_ERROR || v.back() != '\0' || !rtl_convertStringToUString( |