From nobody Mon Sep 25 04:34:59 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 4Rv95c0gY5z4v1tR for ; Mon, 25 Sep 2023 04:35:00 +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 4Rv95b5z9Qz3dCC for ; Mon, 25 Sep 2023 04:34:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695616499; a=rsa-sha256; cv=none; b=Nw4hWVV4l1HOjXVsUXF30r1r74dtY8lKXizNYxuFVjtdHqyMrN0KWU4VwbrjDkoBAS4IRc hn6Sp5Biye1MpMbFbTJ8TirFFAaDkPwjrKsPoHvEgwd8wh1MoLmWvCinCLjEzscwknelJZ lmAgGMwKRfuKofjjLFlD6MFYhO2kJ7DpA73iBmQGK+xAmzJ4dErgG0jHHt/gaAy6qp0h7s 2YWwAtOFEfS4sgzlYzv5wTBiIuNdnTqW1SKetKvSiBI8ytBrEV8f/4+5pooBvbmVLIyr3p GQsLLR+nPlPOJ0/62jgdpXowfETF/L3kdLh21x6VMgdJCmZ875f4YYH+1zm+Mg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695616499; 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=Q6qyUF1Kw1JCn/UxXqDeZL9hS4gB+17lnUjvFP2Avjw=; b=hlcM0Y9JPFi5SlPuzqf/IZid2ffs20JTtNZFX3jwCjXO8fAFvEC5BMpxYk/uwdzdww2xTf nXMktKunWsHim22xizTOy6KsukZzn49+DT97OrYyuwu2wEc6lm5DIysB/K2EfvcxsSIJUH Zt/qL2PVpwVYewy2zo8GOPTftkB2YDIZ4B3ukxS2PFDzeLUshfAVpcpPbxw2zbRoUJhqQp ZkyCFLhmdo/r8bRWBiRCtsxljiRbC1KJs9ES27P5r33/H/0FD+4HanD9WTTK55sxw+gEoX 3lEDVQcOu9Ebq8oDiFQgNvAS8K5Z2ZLwdg9atrsViaoajFYS8T2N3fUbdNxlbA== 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 4Rv95b53fLz1FVW for ; Mon, 25 Sep 2023 04:34:59 +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 38P4Yxjb098647 for ; Mon, 25 Sep 2023 04:34:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38P4YxFh098646 for bugs@FreeBSD.org; Mon, 25 Sep 2023 04:34:59 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 269688] memalign() produces division by zero if alignment is 0 Date: Mon, 25 Sep 2023 04:34:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pjfloyd@wanadoo.fr X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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: 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=3D269688 Paul Floyd changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed --- Comment #8 from Paul Floyd --- libc: handle zero alignment in memalign() For compatibility with glibc. The previous code would trigger a division by zero in roundup() and terminate. Instead, just pass through to malloc() for align =3D=3D 0. PR: 269688 Reviewed by: imp, mjg MFC after: 1 week Pull Request: #655 --=20 You are receiving this mail because: You are the assignee for the bug.=