linux/tools/lib/bpf
Jakub Kicinski 531b014e7a tools: bpf: make use of reallocarray
reallocarray() is a safer variant of realloc which checks for
multiplication overflow in case of array allocation.  Since it's
not available in Glibc < 2.26 import kernel's overflow.h and
add a static inline implementation when needed.  Use feature
detection to probe for existence of reallocarray.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-07-11 22:13:34 +02:00
..
.gitignore tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf 2015-11-05 12:47:51 -03:00
bpf.c tools/bpf: sync kernel header bpf.h and add bpf_task_fd_query in libbpf 2018-05-24 18:18:19 -07:00
bpf.h tools/bpf: sync kernel header bpf.h and add bpf_task_fd_query in libbpf 2018-05-24 18:18:19 -07:00
btf.c bpf: btf: Add tests for the btf uapi changes 2018-05-23 12:03:32 +02:00
btf.h bpf: btf: Add BTF support to libbpf 2018-04-19 21:46:25 +02:00
Build tools: libbpf: move library error code into a separate file 2018-07-11 22:13:34 +02:00
libbpf_errno.c tools: libbpf: move library error code into a separate file 2018-07-11 22:13:34 +02:00
libbpf.c tools: bpf: make use of reallocarray 2018-07-11 22:13:34 +02:00
libbpf.h tools: libbpf: add extended attributes version of bpf_object__open() 2018-07-11 22:13:34 +02:00
Makefile tools: bpf: make use of reallocarray 2018-07-11 22:13:34 +02:00
nlattr.c libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00
nlattr.h libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00