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:
parent
7d2a65cca3
commit
3bab16f821
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue