From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64853 invoked by alias); 29 May 2015 19:47:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 64792 invoked by uid 48); 29 May 2015 19:47:34 -0000 From: "Keith.S.Thompson at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/66318] Error messages contain raw file name; malicious #line directives can do bad things Date: Fri, 29 May 2015 19:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Keith.S.Thompson at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg02433.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66318 --- Comment #5 from Keith Thompson --- 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.