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:
Sean Young 2026-09-13 15:12:27 +01:00 • committed by Helge Deller
commit 4485a01f4d