linux/scripts/genksyms
Michal Marek d920f7c662 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>
2017-01-05 13:00:54 +01:00
..
.gitignore genksyms: migrate parser to implicit rules 2011-06-09 14:04:41 -04:00
genksyms.c scripts: genksyms: fix resource leak 2016-04-20 09:24:49 +02:00
genksyms.h genksyms: Do not expand internal types 2011-10-11 12:00:39 +02:00
keywords.gperf kbuild/genksyms: handle va_list type 2016-11-29 15:53:19 +01:00
keywords.hash.c_shipped genksyms: Regenerate parser 2016-11-29 15:57:40 +01:00
lex.l kbuild: genksyms fix for typeof handling 2016-08-25 18:55:37 +02:00
lex.lex.c_shipped kbuild: Regenerate genksyms lexer 2016-08-25 20:03:51 +02:00
Makefile scripts/genksyms: clean lex/yacc generated files 2012-01-08 14:48:15 +01:00
parse.tab.c_shipped genksyms: Regenerate parser 2016-11-29 15:57:40 +01:00
parse.tab.h_shipped genksyms: Regenerate parser 2016-11-29 15:57:40 +01:00
parse.y genksyms: Fix segfault with invalid declarations 2017-01-05 13:00:54 +01:00