android_kernel_xiaomi_sm7250/tools/bpf/bpftool
Lam Thai ff80b97fa4 bpftool: Fix a wrong type cast in btf_dumper_int
[ Upstream commit 7184aef9c0f7a81db8fd18d183ee42481d89bf35 ]

When `data` points to a boolean value, casting it to `int *` is problematic
and could lead to a wrong value being passed to `jsonw_bool`. Change the
cast to `bool *` instead.

Fixes: b12d6ec097 ("bpf: btf: add btf print functionality")
Signed-off-by: Lam Thai <lamthai@arista.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20220824225859.9038-1-lamthai@arista.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 13:19:24 +02:00
..
bash-completion
Documentation
.gitignore
btf_dumper.c bpftool: Fix a wrong type cast in btf_dumper_int 2022-10-26 13:19:24 +02:00
cfg.c
cfg.h
cgroup.c
common.c bpftool: Check malloc return value in mount_bpffs_for_pin 2021-07-28 11:13:48 +02:00
jit_disasm.c
json_writer.c
json_writer.h
main.c
main.h
Makefile
map_perf_ring.c
map.c
perf.c
prog.c
xlated_dumper.c
xlated_dumper.h