From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F37A395B083; Wed, 29 Apr 2020 14:33:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F37A395B083 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588170812; bh=xDua0UnsMN0GiMYFLFtnim2vAQuTInUXT4C6kfHBXGo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nxfESD2+hdgip8dtRx1I5Em59OHDT5IHTIA+wEV9TXKx9qh2t5Wb1zzpob4RsjDoV jKAh/a9I/VmZXPyKqIRr+GXiY1wr0xZq/4xKWHKeBgmIO6PTTW0q629QuCsXThCnyl urg0p4Y24j9MXrqlJv8IgBQ1MPj3k/pBGcuisGF8= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/94849] Improper parameter validation in libsanitizer for fopen64 Date: Wed, 29 Apr 2020 14:33:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2020 14:33:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94849 --- Comment #3 from Martin Li=C5=A1ka --- (In reply to Jakub Jelinek from comment #2) > I think it is undefined behavior and just doesn't crash because the pathn= ame > is passed to a syscall which will fail then. > So IMHO nothing we should support. Agree with that. One possible improvement can be decoration of the filename with non-null argument (in Glibc).=