]> Git Repo - linux.git/commitdiff
[PATCH] docbook: fix segfault in docproc.c
authorHenrik Kretzschmar <[email protected]>
Fri, 29 Sep 2006 09:00:56 +0000 (02:00 -0700)
committerLinus Torvalds <[email protected]>
Fri, 29 Sep 2006 16:18:18 +0000 (09:18 -0700)
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 <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/basic/docproc.c

index cb02baa63256ba691501ac65ddea70cadb1112c4..4ab6cbf092256bad17214ae86529de37c93efd95 100644 (file)
@@ -177,6 +177,7 @@ void find_export_symbols(char * filename)
                {
                        fprintf(stderr, "docproc: ");
                        perror(real_filename);
+                       exit(1);
                }
                while(fgets(line, MAXLINESZ, fp)) {
                        char *p;
This page took 0.053478 seconds and 4 git commands to generate.