From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE84C385783F; Tue, 18 Jul 2023 11:55:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE84C385783F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689681354; bh=3uT0JNbDWAKQsyIHy+9EIB7JUsIJlulAFBj9qPVluHk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lhmGK9jT2V9QWYaFBq1khVHGGNyd8ipw8n9ZqWnetJe9GkS/2ELbiPanHlLYdQPe0 na9PLAhfHaPNhAuJ9Bde5lalqFvVHjqzJ7waZMFSfYmd1bkPrM6GXgX9FZGNYETjqo R9wBwW0wRXLdyjeGovH5ZL4JQPGNfqHhgdrYjPUM= From: "vincent-srcware at vinc17 dot net" To: glibc-bugs@sourceware.org Subject: [Bug stdio/30647] scanf functions wrong on nan() Date: Tue, 18 Jul 2023 11:55:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vincent-srcware at vinc17 dot net 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=3D30647 --- Comment #1 from Vincent Lef=C3=A8vre --- Note that if the string starts with "nan(" but does not match nan(n-char-sequence_opt), then scanf must reject the conversion (after read= ing the longest prefix). Examples: * "nan(foo" (no closing parenthesis) * "nan(a b)" (the space is not valid in n-char-sequence) Currently it doesn't, because it stops at "nan" (it does not read the longe= st prefix). These cases are similar to issues mentioned in bug 12701, but currently this is not the same bug. --=20 You are receiving this mail because: You are on the CC list for the bug.=