summaryrefslogtreecommitdiff
path: root/kexec/arch/i386/kexec-multiboot-x86.c
diff options
context:
space:
mode:
authorSylvain Munaut <s.munaut@whatever-company.com>2016-08-26 12:46:14 +0000
committerSimon Horman <horms@verge.net.au>2016-10-07 11:53:55 +0900
commit97b6f5f78d955733ce7ae0dcf8944af84407d615 (patch)
tree216da9e52cbd122a725382beb842b4af47b31eed /kexec/arch/i386/kexec-multiboot-x86.c
parent1574ff1aae4f3a2396187b4fe4f75a9be2ba2cc3 (diff)
kexec elf: Sanity check on the note header before accessing it
The name[hdr.n_namesz -1] check below can segfault if the header is garbage. So we check the computed header side fits within the expected area before going further. Signed-off-by: Sylvain Munaut <s.munaut@whatever-company.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/i386/kexec-multiboot-x86.c')
0 files changed, 0 insertions, 0 deletions