https://bugs.documentfoundation.org/show_bug.cgi?id=172956
BogdanB <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |om Keywords|bibisectRequest |bibisected Regression By| |Caolán McNamara --- Comment #4 from BogdanB <[email protected]> --- author Caolán McNamara <[email protected]> 2024-08-12 12:40:23 +0100 committer Caolán McNamara <[email protected]> 2024-08-16 09:30:08 +0200 commit 898594dc5d90087b6c711551ed698802c99571f2 (patch) tree 4cb8925ee6544217379188735905d4d4be4506e5 parent 0398e4ec1d0643663f9baf25ca9e9c6dd9377c5c (diff) cid#1608509 silence Overflowed array index read Change-Id: Ie42eb4de09968e5c21030936c693ad348c05bbdf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171925 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Diffstat -rw-r--r-- svl/source/misc/inethist.cxx 2 1 files changed, 1 insertions, 1 deletions diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index dc25d6b0b5a9..12e0b66365cd 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -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; Caolan, please can you take a look? -- You are receiving this mail because: You are the assignee for the bug.
