cid#1608100 silence Overflowed array index read

Change-Id: I882c93a09697f57971bccfcc74c7cebcc1b265ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171762
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-08-11 16:09:02 +01:00
parent 7d2a65cca3
commit 3bab16f821

View file

@ -72,7 +72,7 @@ sal_uInt16 OStoreBTreeNodeData::find (const T& t) const
l = m + 1;
}
sal_uInt16 const k = static_cast<sal_uInt16>(r);
sal_uInt16 const k = static_cast<sal_uInt16>(r & 0xFFFF);
if ((k < capacityCount()) && (t.m_aKey < m_pData[k].m_aKey))
return k - 1;
else