From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B99D3858D32; Thu, 10 Aug 2023 11:05:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B99D3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691665500; bh=UAZ2nVaHOtpiUO76CUfD7fInk0SyXvJ7vYIfTFLVSvE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M+rB4be23QMne+8wDSTm+pZ4B3EMg0o4lDOaLHOXLCwfqvSaVGYCRUlkjwGBAIbpR Fh7zQLzakkFIZP5dwZdsM0nCIeaxPE13zvTNZUbPMY9u++X/Hs7DnIr8LUH9d2dYCK gyLWG/2rytvuBmDWE9bqT0YMWvnmlH/SEkK9ZPdU= From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/30737] fdopendir() is not robust - returns bogus DIR* instead of flagging an error Date: Thu, 10 Aug 2023 11:04:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adhemerval.zanella at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30737 --- Comment #5 from Adhemerval Zanella --- (In reply to Mark Galeck from comment #4) > Right, I did not mean to say readdir() did not report error; I did not ch= eck > the error return of readdir().=20=20 >=20 > Yes so the only question is that of early failure versus later failure.= =20=20 >=20 > Up to you, fine with me if you close it. I think it is a QoI to fail early, and it is a free check on fdopendir. I w= ill send a patch. --=20 You are receiving this mail because: You are on the CC list for the bug.=