From nobody Mon Jun 12 16:52:40 2023 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 4QfyRD6M2Fz4dBsx; Mon, 12 Jun 2023 16:52:40 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QfyRD5q8wz3FsK; Mon, 12 Jun 2023 16:52:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686588760; 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=JV1xn4wpRc/7vuO4SqBfxyDYYZ75rtLjGp126rCCUJ4=; b=h1vXXCvaAWk+RkykDiiqJHMVkum7vVRqTJV4ImMvbX181+01UKYZd7MmW0v96tfinwTWB1 7X6pFJlpXl4rNZgMtzTH4x8Im30fUluyYZRYKand0Ynhu1IGTZ+93hINyz3hZ1jr8jqv2m h+572oj46j3AjSH84N5Rg5cDnkYNaaNP8wMY8DSu5nrECcuP4PmRj/eGojw8DCwZIK9Ipp G0aXsGZtqUeYIWRpE9RGoYwULIJrXJdqCX+d8SAkwPaBQSGYowP9t4T6Tt5xayUQCuxPDd gSVLkWLsS96BbdyRrNxt556lWjs1FZDs38Hptq+/C9iW8MtZjVnkqlLrWWNBVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686588760; 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=JV1xn4wpRc/7vuO4SqBfxyDYYZ75rtLjGp126rCCUJ4=; b=CcLWB0j5Ch+02GB78rDwKIs4H9BbhM9bu3a+oyL0eUtXBSgoSRaDfJuqfxiyNB3aI0NKPm HBLC2K0RArspdeMr2qpz42tY0+IKYFEqmmYiWS3L+ZPfcwPt0Kz41Sd15uPQ+4N0o2HnQB C/94Xgv+AXU53QcdvX24VVv5/OO02pXGxoMQTg7oD8eUQa2iEooxRVk8b7quXCV/yZd4jM iW9oTOiGpwxzqnxEFjF0YnRRzrtWDOEl7fpD9FR879/sNVcY5/lX+pJQ36XATeHuVIhnrP Djw9dXACf/TiypGT/KUyJhAPRBpbP/wKl4HbeyJ/wyXhhlDChVv9lKs49PU4pA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686588760; a=rsa-sha256; cv=none; b=fwyFuKh9a4IFU/yJk9cEBsiw8gv1ybvliOVfECUUiX3p6bfU7kr0qat++SimvLL4x7XiJV VUIyW+h3hbvbILsZwhG0/BiXRGhQyOSkxj0uVhE1SyFI4Tv2ylrlFHI3S9zGhptKZQHhCA cLZ1YcZqRbCVbJFS7GPtg18g3RkteHU4RAKAKIXVe34cRqnGMB8c71NY/X/TS1NLRMN6Kz kUWoqU9QPT6BkrA5kTm+EfSUt5XXKhK1svCpBCIQArRrdY/kcs/xlSCVoHDOZM7TjgnuIs dofKEQUidI6bdLG0qhLvTHxy1myU4ESsb1GAfbrNvEC/DTCtoEywjpGGI1ivVg== 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 4QfyRD4tWjznXh; Mon, 12 Jun 2023 16:52:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35CGqe8T093156; Mon, 12 Jun 2023 16:52:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35CGqe4F093155; Mon, 12 Jun 2023 16:52:40 GMT (envelope-from git) Date: Mon, 12 Jun 2023 16:52:40 GMT Message-Id: <202306121652.35CGqe4F093155@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 9f7fdd8c1ab1 - main - crypto: Advance the correct pointer in crypto_cursor_copydata() 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9f7fdd8c1ab153104275e59b49b2d567cec95256 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=9f7fdd8c1ab153104275e59b49b2d567cec95256 commit 9f7fdd8c1ab153104275e59b49b2d567cec95256 Author: Mark Johnston AuthorDate: 2023-06-12 16:09:54 +0000 Commit: Mark Johnston CommitDate: 2023-06-12 16:52:24 +0000 crypto: Advance the correct pointer in crypto_cursor_copydata() PR: 271766 Reported by: Michael Laß MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40468 --- sys/opencrypto/criov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/opencrypto/criov.c b/sys/opencrypto/criov.c index c832a9af9eec..c1bd4919ec5c 100644 --- a/sys/opencrypto/criov.c +++ b/sys/opencrypto/criov.c @@ -591,7 +591,7 @@ crypto_cursor_copydata(struct crypto_buffer_cursor *cc, int size, void *vdst) remain = MIN(PAGE_SIZE - cc->cc_offset, cc->cc_buf_len); todo = MIN(remain, size); memcpy(dst, src, todo); - src += todo; + dst += todo; cc->cc_buf_len -= todo; if (todo < remain) { cc->cc_offset += todo;