diff options
author | Andrii Nakryiko <[email protected]> | 2021-11-03 10:32:10 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-11-03 13:25:37 -0700 |
commit | 88918dc12dc357a06d8d722a684617b1c87a4654 (patch) | |
tree | f62ea560b498180fca2d5a0b31a14b66fb4c6648 /lib/test_overflow.c | |
parent | 833907876be55205d0ec153dcd819c014404ee16 (diff) |
libbpf: Improve sanity checking during BTF fix up
If BTF is corrupted DATASEC's variable type ID might be incorrect.
Prevent this easy to detect situation with extra NULL check.
Reported by oss-fuzz project.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions