cid#1608509 silence Overflowed array index read

Change-Id: Ie42eb4de09968e5c21030936c693ad348c05bbdf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171925
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-08-12 12:40:23 +01:00
parent 0398e4ec1d
commit 898594dc5d

View file

@ -181,7 +181,7 @@ sal_uInt16 INetURLHistory_Impl::find (sal_uInt32 nHash) const
while ((l < r) && (r < c))
{
sal_uInt16 m = (l + r) / 2;
sal_uInt16 m = ((l + r) / 2) & 0xFFFF;
if (m_pHash[m] == nHash)
return m;