linux/tools/include
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
..
asm tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
asm-generic mn10300: Remove the architecture 2018-03-09 23:19:56 +01:00
linux tools: bpf: make use of reallocarray 2018-07-11 22:13:34 +02:00
tools tools: bpf: make use of reallocarray 2018-07-11 22:13:34 +02:00
trace/events tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
uapi tools/headers: Pick up latest kernel ABIs 2018-06-26 08:43:14 +02:00