From nobody Tue Sep 22 06:50:49 2026 X-Original-To: dev-commits-src-branches@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 4hprMt1YDhz6tCnX for ; Tue, 22 Sep 2026 06:50:50 +0000 (UTC) (envelope-from git@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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hprMs5w44z4KLH for ; Tue, 22 Sep 2026 06:50:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790059849; 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=401R+Hey0qYqNfxZAg3lG1AWOHxooKO70NhQmVIBvqo=; b=A9VdNDwj1GqaUJM1fmzKyvsgY5IHVevetDLzxUTXIT7R9QJQV2BPOLipDTzMxUxfBrKpsI VQ9nS05fQE8H0WjuG1m7SBG/tMuTH7A2umlc+MjoY7rClaIAeOw9kGHlQ3+GoS3Qx+27MR dM/A8vyRCB/lmUdc4xl/vJqpUzo6aQAoy5fFgrStqYRTXwlmqa+sYwCNfSX726ToYendfU 7jk9KifNg3So0L1ZO+wTbP6cxKj6eSWnVUzvzsdm3ZoT3tta2e521Idvcz8wABrv2P/rTr 0xTkViXFQH4v9huhe6aESucJD6pY+umWkssQFVTLLd0wDZHpAn5CxZggWKI3Tw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790059849; b=ZCilEgqoI9QTt7MgJvtXuywyPzuZKaPrwGXeFMVPjoDQWRgD4JYyBjqwKzeO12HbFqpUQG LUS6mxmEQCqV/22l+HOfGWKoXZDlkriTeFhM/UBMN49kXjX6JuvDVEAigJQAeCcwdrM9g+ yFMLrQFuY+ZJE2INLHPMQiGU8buJZyhMVDqkkZ2CBVDbckB7OKRFIp/EfDwyvTuiW9hMZH +N++yd/3lSxpBCRZwEbh1YTzQDDijn9sLtTjtHpz0RZUInoRUNgnf8yiWJ2EHzs5CCedsE uJLC6Ab7GdK0aHC/h1Z9F2omFiwJtptfNTzgEzMXqDHWzNS8GPGYcBxp5mHW+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790059849; 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=401R+Hey0qYqNfxZAg3lG1AWOHxooKO70NhQmVIBvqo=; b=qdeX5WfHYEknIrCo+yDUsjQiaAm64oA7OuAouGaotT8DaPPzn4aIPdAgQ4Htnug2Gz+URH fePqqYtv/1hZxF2CnI9w2vA5bZGpXJhnjdPKe0gXMSndHrpRduhMA5DEc6yeEzp8Ra1VHT iB3DXgQdV0c55x7W2Ne0BvAKjokKiczA0k7Wxk/GWUMnEsgYPDraF1VlMdMBPFhtezramW HVSrdMKAfb34qO/vNdkWVzu1KZMZXihQL5pwQ56mrRiB90WXHRxIbPK4GVEWYnZ+0rXTHi 8wYNMBqta7VfWAcB4vvsFZCfJfkk4AJPQTjy9gpTXeFj6lrUL5ZuAsNgRdZv7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hprMs4vYgzwc8 for ; Tue, 22 Sep 2026 06:50:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1cf98 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 22 Sep 2026 06:50:49 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Enji Cooper Subject: git: f3cdf3d5dda3 - stable/14 - Assign and test `malloc` result separately List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f3cdf3d5dda325c30786d444dbd85b7436dec033 Auto-Submitted: auto-generated Date: Tue, 22 Sep 2026 06:50:49 +0000 Message-Id: <6ab22549.1cf98.3e59e982@gitrepo.freebsd.org> The branch stable/14 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=f3cdf3d5dda325c30786d444dbd85b7436dec033 commit f3cdf3d5dda325c30786d444dbd85b7436dec033 Author: Enji Cooper AuthorDate: 2026-08-19 08:38:46 +0000 Commit: Enji Cooper CommitDate: 2026-09-22 06:48:36 +0000 Assign and test `malloc` result separately The previous pattern is cited as an issue with ATF 0.22+ when using clang/gcc after [1]. MFC after: 2 weeks Reported by: clang (-Wparenthesis) Differential Revision: https://reviews.freebsd.org/D59274 [1]: https://github.com/freebsd/atf/pull/72 (cherry picked from commit 2561c468c11309fbc0a097d3f4fcf0bd3bf28b8f) --- lib/libc/tests/stdlib/qsort_bench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/tests/stdlib/qsort_bench.c b/lib/libc/tests/stdlib/qsort_bench.c index 5f2cfae40140..285877c6c212 100644 --- a/lib/libc/tests/stdlib/qsort_bench.c +++ b/lib/libc/tests/stdlib/qsort_bench.c @@ -53,7 +53,7 @@ qsort_bench(int log2n) int *buf; /* fill an array with a pathological pattern */ - ATF_REQUIRE(buf = malloc(n * sizeof(*buf))); + ATF_REQUIRE((buf = malloc(n * sizeof(*buf))) != NULL); buf[0] = 0; buf[n / 2] = n / 2; for (unsigned int i = 1; i < n / 2; i++) {