Andrii Nakryiko c701917e64 libbpf: Fix potential multiplication overflow in mmap() size calculation
Prevent potential overflow performed in 32-bit integers, before assigning
result to size_t. Reported by LGTM static analysis.

Fixes: eba9c5f498a1 ("libbpf: Refactor global data map initialization")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200117060801.1311525-4-andriin@fb.com
2020-01-17 08:33:18 -08:00
..
2019-09-10 12:31:39 -06:00
2019-11-21 20:10:44 -05:00
2020-01-15 14:00:35 -08:00
2019-10-29 12:04:18 +00:00
2019-12-01 18:24:25 -08:00
2019-10-13 09:38:27 -04:00