pie/util-vdso: check elf structure end oob
Add checks that structure end is inside memory area [mem, mem + size] before dereferencing structures. Otherwise, for example, vdso_fill_symtable will try to dereference ehdr members even with vma size 0. Signed-off-by:Dmitry Safonov <dsafonov@virtuozzo.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
Showing
Please
register
or
sign in
to comment