[PATCH] docbook: fix segfault in docproc.c
Adds a missing exit, if the file that should be parsed couldn't be opened. Without it crashes with a segfault, cause the filedescriptor is accessed even if the file could not be opened. Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Acked-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
aaa2a97eb9
commit
074a5dde04
1 changed files with 1 additions and 0 deletions
|
@ -177,6 +177,7 @@ void find_export_symbols(char * filename)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "docproc: ");
|
fprintf(stderr, "docproc: ");
|
||||||
perror(real_filename);
|
perror(real_filename);
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
while(fgets(line, MAXLINESZ, fp)) {
|
while(fgets(line, MAXLINESZ, fp)) {
|
||||||
char *p;
|
char *p;
|
||||||
|
|
Loading…
Reference in a new issue