contrib/elf2dmp: add kernel start address checking
commit06164cc402e67e64eefb79cd9a00a59d0e0d2fce
authorViktor Prutyanov <viktor.prutyanov@phystech.edu>
Tue, 19 Feb 2019 21:19:36 +0000 (20 00:19 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 11 Mar 2019 15:33:49 +0000 (11 16:33 +0100)
tree259e09fb959256437386c1c9d7d114b102807168
parentd4cef0c67ca0f7a2749e77360122273541147c55
contrib/elf2dmp: add kernel start address checking

Before this patch, if elf2dmp failed to find NT kernel PE magic in
allowed virtual address range, then it assumes NULL as NT kernel
address and cause segfault.

This patch fix the problem described above by checking NT kernel address
before futher processing.

Signed-off-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
Message-Id: <20190219211936.6466-1-viktor.prutyanov@phystech.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
contrib/elf2dmp/main.c