diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2005-06-03 03:28:44 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2005-06-03 03:28:44 +0000 |
commit | d51085f37e16c95804f0fdabb7b1226e4b4e7de9 (patch) | |
tree | f0dc8ad34f9fcaf27052e24e893a4284b5fee6e9 /contrib/gcc/cpplib.c | |
parent | 1689e31de64dad8b8826dc924a82c7ba59a54bf4 (diff) |
Notes
Diffstat (limited to 'contrib/gcc/cpplib.c')
-rw-r--r-- | contrib/gcc/cpplib.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/gcc/cpplib.c b/contrib/gcc/cpplib.c index 60a86e3e3988..298f5e6618b5 100644 --- a/contrib/gcc/cpplib.c +++ b/contrib/gcc/cpplib.c @@ -680,6 +680,14 @@ do_include_common (cpp_reader *pfile, enum include_type type) if (!fname) return; + if (!*fname) + { + cpp_error (pfile, CPP_DL_ERROR, "empty filename in #%s", + pfile->directive->name); + free ((void *) fname); + return; + } + /* Prevent #include recursion. */ if (pfile->line_maps.depth >= CPP_STACK_MAX) cpp_error (pfile, CPP_DL_ERROR, "#include nested too deeply"); |