cid#1606852 silence Overflowed constant

Change-Id: I94d75d6c2b69937e5d0f29b498518999b1f49120
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177167
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara 2024-11-22 20:00:28 +00:00
parent 16b629cf08
commit 53d54929b5

View file

@ -62,6 +62,8 @@ sal_uInt32 readString(const sal_uInt8* buffer, sal_Unicode* v, sal_uInt32 maxSiz
len = maxSize / 2;
}
assert(len > 0 && "maxSize has to be >= 2");
for (i = 0; i < len; i++)
{
sal_uInt16 aChar;