From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 648C13858C5F; Fri, 12 May 2023 00:45:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 648C13858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1683852318; bh=23VNpVex4pJxM6EtOKiUNASFAP+fyvkKUkaQC5FSGJQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qCj31Nb7GPd/C9OmkoHF4PEiW5d3pBFFUJRM5X/oLyuEFQ8zQY40t3zS255oloWEw 6xuhOtNahc1AmIHgwzl5yxnWMRPst7tE4Yh9rFzDOMw/ZXaisl0CXQ9XKAh3lHOxXl 8dy1AfsrGjfROvA9Nsk6aIAIcelI1D7akvGMhqro= From: "gabravier at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug stdio/30441] snprintf truncates output on extremely large buffer sizes Date: Fri, 12 May 2023 00:45:18 +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: gabravier at gmail dot com 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=3D30441 --- Comment #3 from Gabriel Ravier --- Quite the interesting discussion, thanks for the link. w.r.t. the points raised there, I generally agree that passing a value for n larger than the actual buffer size is extremely dubious, but if the glibc project's position is that this is an error in the C standard and the bug is thus invalid, then I think a DR or something like that should be raised with WG14 about this issue. Has anything like this been done ? --=20 You are receiving this mail because: You are on the CC list for the bug.=