This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/66318] Error messages contain raw file name; malicious #line directives can do bad things
- From: "Keith.S.Thompson at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 May 2015 19:47:32 +0000
- Subject: [Bug preprocessor/66318] Error messages contain raw file name; malicious #line directives can do bad things
- Auto-submitted: auto-generated
- References: <bug-66318-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66318
--- Comment #5 from Keith Thompson <Keith.S.Thompson at gmail dot com> ---
Mikhail: Newlines in file names (either the actual file name or via a
#line directive) cause problems with __FILE__, though that particular
problem occurs only if there's an explicit reference to __FILE__.
See Bugzilla ticket #66317.