From nobody Mon Jun 26 07:49:17 2023 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QqKjn67Lqz4jMPc for ; Mon, 26 Jun 2023 07:49:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QqKjn3r7bz3wjr for ; Mon, 26 Jun 2023 07:49:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687765757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X7OJLcVRqXC78+baFLmURDraV4Zlk2G7YOWsqLlSw98=; b=sMiT769w3eG8N8ceNR95ePO+KcZ3UTYfl5treZ05I5morHjHybJaG0tmC44cirgA0t1Ufn Y6r3WmErXLJc67OTU+JIDpheMhekP+UsvtBBl/RyndhhYfjkjYges7+neUj7RJ2Xm2Xa9L 5WFQOVQ2bNajIJLA3MrGjkBxq83IWHKAg61ofHO05qfH/3vb/tZIzm1GQZi63bCciLtnKu mN+mFj7pp2iWNbySUUKuw6M+Ogx7Vw3R2rUnfVd1pIhTbROLo7ALAMxBPZVUg3vT8zp7S3 97+unePc50omPCv1Pk45+gBj+uYefvaJvveMIID1mYJJcViTNItjbyiO63qgbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687765757; a=rsa-sha256; cv=none; b=OuftDOhBB+AgQ85klf050nGL/00cvuEmTbxSl6ndBCw7FpL5O6yYIWxYeV5OZmZr3t74yD rt8J1QCjL2oDKfFWQG6eiLud/hF1sp99CoOEV+vNL9q8WbMI8orA8dx40pE3arczs8y4sh xZmoZiEHLFyS0Icpt/K2sTSaLWnzQPisdKcz3iBIofF5P4I9cUghgxB2EoZJUEt+TAtgVq /YrqMpxFA/ENPzezbBZRwKAeht60M+G0wroRZyKiGQbp4HcrLoLLw6W8FRnlMMDjpNwq0L CdS3r0S8l02pxkmUh6/RGwLmGhcu7TkA1DtibwPVz3cj/I+zcq7TxveBUZKHVA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QqKjn2wgSz11pP for ; Mon, 26 Jun 2023 07:49:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 35Q7nH2K022739 for ; Mon, 26 Jun 2023 07:49:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35Q7nHYv022738 for standards@FreeBSD.org; Mon, 26 Jun 2023 07:49:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 272218] mbsinit returns true for a state that is not in the initial state Date: Mon, 26 Jun 2023 07:49:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bruno@clisp.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org 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: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272218 --- Comment #1 from bruno@clisp.org --- The cause is that the file src/lib/libc/locale/mbrtocXX_iconv.h puts some d= ata into the mbstate_t. Whereas the mbsinit() function, as defined in src/lib/libc/locale/mbsinit.c, tests only a single word from this state. mbsinit() should return 0 if ((_ConversionState *)ps)->srcbuf_len > 0 || ((_ConversionState *)ps)->dstbuf_len > 0. --=20 You are receiving this mail because: You are the assignee for the bug.=