diff options
| author | Sean Young <sean@mess.org> | 2026-09-13 15:12:27 +0100 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-09-18 13:38:14 +0200 |
| commit | 4485a01f4df1c9683d8ffe3e4ade6c33c9572d3c (patch) | |
| tree | 75804c4fef046b37b378a6f36b3fbbdb53900d6b /tools/perf/tests/shell/test_stackcollapse_python.sh | |
| parent | df2908090cda368b01ff43709f51890076c56157 (diff) | |
| download | linux-next-4485a01f4df1c9683d8ffe3e4ade6c33c9572d3c.tar.gz linux-next-4485a01f4df1c9683d8ffe3e4ade6c33c9572d3c.zip | |
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>
Diffstat (limited to 'tools/perf/tests/shell/test_stackcollapse_python.sh')
0 files changed, 0 insertions, 0 deletions
