From nobody Thu Jul 27 16:28:58 2023 X-Original-To: bugs@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 4RBbn723qmz4p6NK for ; Thu, 27 Jul 2023 16:28:59 +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 4RBbn705hTz4MlH for ; Thu, 27 Jul 2023 16:28:59 +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=1690475339; 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; bh=ImzCfW9d6equ0kqM+eikgc4zJBUGDZoKjU1eCIClSVw=; b=HiLx7rkvnhHjaDUllsR60HSPBaa+nHPJl1LZYSgRmXnkOSVEtx/LW/n56ziiDS7aMIHRfX IpkbE1PXU3ScgSFGMQzqv2tkRplPCmLvi1ogp9NKEwMuuuTrJk2ZG165UFVounWU8xBFzh K+vRLuoFrCyO1gmFI6bB9F2R0X06jVW1lAMKYhX6z85Ev+E3Ju0urQOBMEJQqUgI5EDoPP AAQhkIsm9FEYjke/4YQoGKtJO9I0JGQaxRJrHrnHkb8LN1iux7UoP0Qa1mGICuZKgTcgNE c21oymPSCsgSUuWij1TdY1Eop+EaCg7T8sgMdoTDLRnlbNwNIV6LKrXAfH64pQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690475339; a=rsa-sha256; cv=none; b=UVk8Hdz99efxNQjvlugA78EcM48tAJDCjdwEmCE/KrbSJo1eCtyGA8a1MXO5UWmaPX5HIM h9uh+717jrIVkRlXnbUVDGIAX8vjCWoCl+wuoHsDQ2u5qcVuRrfjul5xK+Vh8rLPD8Anbl n1wv0WlSC0xc4lx13In8fatpcwOQlGEIGCPqlO2utxoS/7sm9rkoULLKhPENXam/vOYlcX mP2MN5ld+dOA0WmPoachoLpGks19MowixFmGd/GDfsrvcWjdhPYPEGyoUo3pd+je1SCPDP GS0UXz0QIzWfbB2gNuS7zHNKR9+94sWofLrJsdbRf8vjah7MV6C3k7drrC4Ixg== 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 4RBbn664d3zH4D for ; Thu, 27 Jul 2023 16:28:58 +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 36RGSw53094564 for ; Thu, 27 Jul 2023 16:28:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36RGSwpX094563 for bugs@FreeBSD.org; Thu, 27 Jul 2023 16:28:58 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: bugs@FreeBSD.org Subject: [Bug 272758] c16rtomb and c32rtomb wrong return value (at least on aarch64) Date: Thu, 27 Jul 2023 16:28:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkk@spth.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272758 Bug ID: 272758 Summary: c16rtomb and c32rtomb wrong return value (at least on aarch64) Product: Base System Version: 13.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: pkk@spth.de When looking into an SDCC regression test failing for test-host, I found the following issue: The mbrtoc16 and mbrtoc32 functions return a wrong value for my test case. I compiled the following code on a Raspi 4 running FreeBSD13 via "cc test.c" when executing the resulting binary, the last assertion fails. #include #include #include int main(void) { static mbstate_t ps; char16_t c16[3]; char c[MB_LEN_MAX] =3D "C"; assert(mbrtoc16(c16, c, 1, &ps) =3D=3D 1); assert(mbrtoc16(c16 + 1, c + 1, 1, &ps) =3D=3D 0); // Writes a null wide character and thus puts ps into the initial conversion state (C2X section 7.30.1.3) assert(c16[0] =3D=3D (u"C")[0]); assert(c16rtomb(c, c16[0], &ps) =3D=3D 1); return(0); } I do not have any non-aarch64 FreeBSD 13.1 systems to test. But the test do= es not fail for Debian GNU/Linux on aarch64 and amd64. --=20 You are receiving this mail because: You are the assignee for the bug.=