mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
parisc: unwind: Replace open-coded binary search with bsearch()
There is a bug in the binary search where hi can underflow. If addr is less than the first entry, then "hi = mid - 1" will underflow to ULONG_MAX. Then we have an out-of-bounds read. Replace the open-coded binary search with bsearch(). Issue found by an LLM. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
df2908090c
commit
4485a01f4d
1 changed files with 15 additions and 18 deletions
Loading…
Add table
Add a link
Reference in a new issue