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>
This commit is contained in:
Caolán McNamara
2024-10-04 20:30:58 +02:00
parent ed75a40d3c
commit 037efad7b7
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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(