diff options
| author | 2023-08-03 09:28:56 +0200 | |
|---|---|---|
| committer | 2023-08-23 05:17:07 +0200 | |
| commit | 9c5e490093e83e165022e0311bd7df5aa06cc860 (patch) | |
| tree | 91fea461e88eec1e8eb94c6a58cebfe70e84697e /tools/perf/scripts/python/stackcollapse.py | |
| parent | selftests/nolibc: use correct return type for read() and write() (diff) | |
| download | linux-rng-9c5e490093e83e165022e0311bd7df5aa06cc860.tar.xz linux-rng-9c5e490093e83e165022e0311bd7df5aa06cc860.zip | |
selftests/nolibc: prevent out of bounds access in expect_vfprintf
If read() fails and returns -1 (or returns garbage for some other
reason) buf would be accessed out of bounds.
Only use the return value of read() after it has been validated.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
