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:
parent
0398e4ec1d
commit
898594dc5d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue