OpenCloudOS-Kernel/tools/bpf/bpftool
Jakub Kicinski d5fc73dceb tools: bpftool: fix potential format truncation
GCC 7 complains:

xlated_dumper.c: In function ‘print_call’:
xlated_dumper.c:179:10: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-truncation=]
     "%+d#%s", insn->off, sym->name);

Add a bit more space to the buffer so it can handle the entire
string and integer without truncation.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-03-16 09:23:15 +01:00
..
Documentation tools: bpftool: new command-line option and documentation for 'visual' 2018-03-01 18:29:49 -08:00
bash-completion tools: bpftool: add bash completion for CFG dump 2018-03-01 18:29:49 -08:00
Makefile tools: bpftool: fix dependency file path 2018-03-16 09:22:55 +01:00
cfg.c tools: bpftool: generate .dot graph from CFG information 2018-03-01 18:29:49 -08:00
cfg.h tools: bpftool: detect sub-programs from the eBPF sequence 2018-03-01 18:29:48 -08:00
cgroup.c tools: bpftool: remove new lines from errors 2018-01-04 12:28:46 +01:00
common.c tools: bpftool: improve architecture detection by using ifindex 2018-01-18 01:26:15 +01:00
jit_disasm.c tools: bpftool: improve architecture detection by using ifindex 2018-01-18 01:26:15 +01:00
json_writer.c tools: bpftool: add JSON output for `bpftool prog dump xlated *` command 2017-10-24 01:25:08 +01:00
json_writer.h tools: bpftool: add JSON output for `bpftool prog dump xlated *` command 2017-10-24 01:25:08 +01:00
main.c tools: bpftool: add support for quotations in batch files 2018-03-02 09:46:41 +01:00
main.h tools: bpftool: improve architecture detection by using ifindex 2018-01-18 01:26:15 +01:00
map.c bpftool: recognize BPF_MAP_TYPE_CPUMAP maps 2018-01-19 23:16:52 +01:00
prog.c tools: bpftool: new command-line option and documentation for 'visual' 2018-03-01 18:29:49 -08:00
xlated_dumper.c tools: bpftool: generate .dot graph from CFG information 2018-03-01 18:29:49 -08:00
xlated_dumper.h tools: bpftool: fix potential format truncation 2018-03-16 09:23:15 +01:00