Fix potential integer overflow loading ELF files (#148)
Fix potential integer overflow loading ELF files (#148)

When loading ELF files we calculate the location of a section header in
a way that can overflow a `uint32_t` value producing a wrong result.

This commit fixes the issue by using the fact that section headers are
contiguous in the ELF file.

Signed-off-by: Matthew Gretton-Dann <17bce06e4c7e20e6375a20ae89604c2bf650e2c0@arm.com>

Signed-off-by: Matthew Gretton-Dann <17bce06e4c7e20e6375a20ae89604c2bf650e2c0@arm.com>
iovisor/ubpf,iovisor/ubpf,iovisor/ubpf,iovisor/ubpf