diff options
| author | 2021-11-03 10:32:09 -0700 | |
|---|---|---|
| committer | 2021-11-03 13:25:37 -0700 | |
| commit | 833907876be55205d0ec153dcd819c014404ee16 (patch) | |
| tree | 49685afb5fb776e712a385d376c428ef30c910a7 /tools/perf/scripts/python | |
| parent | Merge branch 'libbpf: deprecate bpf_program__get_prog_info_linear' (diff) | |
| download | linux-dev-833907876be55205d0ec153dcd819c014404ee16.tar.xz linux-dev-833907876be55205d0ec153dcd819c014404ee16.zip | |
libbpf: Detect corrupted ELF symbols section
Prevent divide-by-zero if ELF is corrupted and has zero sh_entsize.
Reported by oss-fuzz project.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20211103173213.1376990-2-andrii@kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
