diff options
author | Michal Marek <mmarek@suse.com> | 2017-01-03 14:40:44 +0100 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2017-01-05 13:00:54 +0100 |
commit | d920f7c6628c63a390009c237fb80a203c2e400a (patch) | |
tree | 439964a9707355942a7896255624f97739800075 /fs/befs | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) | |
download | linux-d920f7c6628c63a390009c237fb80a203c2e400a.tar.gz linux-d920f7c6628c63a390009c237fb80a203c2e400a.tar.bz2 linux-d920f7c6628c63a390009c237fb80a203c2e400a.zip |
genksyms: Fix segfault with invalid declarations
Do not try to recover too early and segfault when parsing invalid
declarations such as
echo 'int (int);' | scripts/genksyms/genksyms
echo 'int a, (int);' | scripts/genksyms/genksyms
echo 'extern void *__inline_memcpy((void *), (const void *), (__kernel_size_t));' | scripts/genksyms/genksyms
The last one was a real-life bug with
include/asm-generic/asm-prototypes.h on x86_64.
Reported-and-tested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'fs/befs')
0 files changed, 0 insertions, 0 deletions