From nobody Thu Jan 09 14:43:29 2025 X-Original-To: dev-commits-src-all@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 4YTSFs5ZDLz5kwLw; Thu, 09 Jan 2025 14:43:29 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YTSFs4TbVz46rW; Thu, 9 Jan 2025 14:43:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736433809; 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=YnqMm12R2rXtT5LmB3LQ+GIHSglmzAwbpPlZtQjmRwk=; b=YXF4wFNLCfNUD73Pwp4V4IRrxLree9JFH+F6CevgAn8pVYdddj7McpfH3QA5tKk3wMRzMs 4VBdeozlEs29RebCqejxR1ACmRWRZqrnzj5gtgVP4l9Osb8u6okaD80sW/NEWrAZSZFaD8 Gn+0C3Ab3avZv83nzezYZNuBDryHIBvfZ0PFK4AOUcmnhyTPrsYYvF0Eo9otuRQkppQmxY OdDPqpZ2QIrr1hcE+lnbHl5Azu0MYCcV8xqWC9qP5NG7gqCNtGHtfoTNn042jHeBhRIlBl xcTBP1eazfk7l18MoUj1k0TjmoD8Rv2mmiCQOZUVIKOEDOkblusILHflWjM/ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736433809; 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=YnqMm12R2rXtT5LmB3LQ+GIHSglmzAwbpPlZtQjmRwk=; b=YvrXrUBpyFyJhOZ2HQD7Px5mqH33qjXPgGcRZIajD/0xylTVDthtRArPEJRqjXpQvCN0Rl nP9etH2ZlsEiVM9TwtyfFdqsLmaYI/Gj+JqapgilfmLrS6XIYjH/Cu5mWO23qzdzNwOSIa f4aHYZz7jeE9kDHEIG3y5SKI5HAvJteR4nvAk5Fcn53hofzV451P2WJwu6Rp+8RlfCeifH wc8dPTNvz2G1w66DSS4pBVcAKO6BVNMOlOC3PHqKImqmj+Y2/SH+p4mExyBoPMheMgu+EM lLM7UoAHl9HYyI0zqyDP4gqhvjYTU0GsCYoeRGwvWQw98n1ruJ6/FrF/vgDdJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736433809; a=rsa-sha256; cv=none; b=uSO+WHC2RKNOaL6VPw67Mznj9m/k49YfOpW8+05JV32p1tl4Jl4tiFT7D32fj0g2uH6Sja fWx200xuzRXqqI7T3yF04tZorpckACxT0XOatDaEPcmYMG5KL2S5hPEAWpYkU3FGx4oeo1 iB8TYaEeUetNDltrA7nzfJn/chAeFa0DID8/qSmcIKLbgecdoaeS0rzzsypbpkI0xpXsi0 8lHpnCYALNvSOzlbm9iW6VD5KObZxB67QXRlTX8P3JRXZU4A+k/f8NztLgxeOm4QXqFcaM If2EmVQcGIyb1xeFS5tHLYveQqjffchd5X+eaYBJ1hqNGH/QLDCykSVrVrbAPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4YTSFs3qBszVXG; Thu, 09 Jan 2025 14:43:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 509EhTpB027776; Thu, 9 Jan 2025 14:43:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 509EhTBh027773; Thu, 9 Jan 2025 14:43:29 GMT (envelope-from git) Date: Thu, 9 Jan 2025 14:43:29 GMT Message-Id: <202501091443.509EhTBh027773@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: David Bright Subject: git: 7c94d515db90 - main - aio_kqueue_test: Fix CID 1558429 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dab X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7c94d515db900401a339cd26861856c8fefb3086 Auto-Submitted: auto-generated The branch main has been updated by dab: URL: https://cgit.FreeBSD.org/src/commit/?id=7c94d515db900401a339cd26861856c8fefb3086 commit 7c94d515db900401a339cd26861856c8fefb3086 Author: David Bright AuthorDate: 2025-01-05 17:24:13 +0000 Commit: David Bright CommitDate: 2025-01-09 14:42:36 +0000 aio_kqueue_test: Fix CID 1558429 Fix a Coverity error in the aio_kqueue_test that could theoretically (but probably not realistically) cause overindexing an array. Differential Revision: https://reviews.freebsd.org/D48328 Reviewed by: asomers, vangyzen Sponsored by: Dell Technologies --- tests/sys/aio/aio_kqueue_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/sys/aio/aio_kqueue_test.c b/tests/sys/aio/aio_kqueue_test.c index c2478a9d05b3..5e5cb40d0752 100644 --- a/tests/sys/aio/aio_kqueue_test.c +++ b/tests/sys/aio/aio_kqueue_test.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -192,6 +193,7 @@ main (int argc, char *argv[]) for (j = 0; j < max_queue_per_proc && iocb[j] != kq_iocb; j++) ; + assert(j < max_queue_per_proc); #ifdef DEBUG printf("kq_iocb %p\n", kq_iocb);