diff options
author | David Howells <dhowells@redhat.com> | 2012-05-22 16:56:13 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-05-23 14:58:53 +0200 |
commit | ef26a5a6eadb7cd0637e1e9e246cd42505b8ec8c (patch) | |
tree | 94f8b1998d94080a842f94529f0d95cfe1bcc53a /block/blk-core.c | |
parent | modpost: use proper kernel style for autogenerated files (diff) | |
download | linux-ef26a5a6eadb7cd0637e1e9e246cd42505b8ec8c.tar.xz linux-ef26a5a6eadb7cd0637e1e9e246cd42505b8ec8c.zip |
Guard check in module loader against integer overflow
The check:
if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr))
may not work if there's an overflow in the right-hand side of the condition.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions