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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user