From nobody Wed Feb 16 00:41:22 2022 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 97B5A19B97D3; Wed, 16 Feb 2022 00:41:22 +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 4JyzfV3vFwz4Vdj; Wed, 16 Feb 2022 00:41:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644972082; 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=mJZLclzZJl0du9F10PWQLzXN8oR/XrZp8ACv3xt2UEU=; b=svV7LQv3mmitQBbuJ/28epzUqUUlTqhOv1PJbDuc194Y4BQakYb9u2bu9gHM2FsLxXj1+l LNLUC+Bd/NPuK0kn2BjTzW1qnRdHw6fRGi+XQKge7wx5kH82BSc+ARNIsIIL5LuViZpPCP K9KE682VpLEzmc1ML18JsEr7+jishX04mlpudQxNN1s+z/wPxZ5g0QkajyC2qNDDn3l72n KppmPVWR2468dzcWUZhR8FQN9F66KxxU651l7jetxEWWB0SNh3qA8Rr0nqXH+FOKRRZsMV Mj14kwe1YA0hLeDZ4F6hHbR0DebG7Jrw4EIxWJRXlKiphdnWEHuVSUF7BPrUzg== 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 65E12471B; Wed, 16 Feb 2022 00:41:22 +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 21G0fMRI069777; Wed, 16 Feb 2022 00:41:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21G0fMw8069776; Wed, 16 Feb 2022 00:41:22 GMT (envelope-from git) Date: Wed, 16 Feb 2022 00:41:22 GMT Message-Id: <202202160041.21G0fMw8069776@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 5fed793a5086 - stable/13 - vt: fix splash_cpu logos use of vd_drawrect 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5fed793a5086150bf8d2072651e8bf14a6f5e735 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644972082; 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=mJZLclzZJl0du9F10PWQLzXN8oR/XrZp8ACv3xt2UEU=; b=VqTcY6gLxXv8HFGPDFmf/zJy8dTV0WVIkwsfmuwWlA19FWQ58ViwoPoZDpbzbsnCpNCUP3 8ThEvhDCdC+rnIc26ULF9yVXZD3G6LCv5YwNhWu7JS5ZyR6ZiBhsGLgpyzxD2K2sNVPu57 6IsWAMt9iU3IrQNyebCwLCMdGWFdU0ZTyaeE0kayDYTCtONIJZJ41FZCNHvOqbR8CydrD/ 5rK7rnHc0Em11CF5UvGYZYLXxrzRlPeKl4NAJZN06eCrp8p9HXhO+WUpmnwir2rMfddMfy up3Q/FMZGBGRs/R6c/CnzHH8gRleZnoyJyLh5XnR+eNvQ2TIATZ71jQs4qeaPA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644972082; a=rsa-sha256; cv=none; b=Y7XNX/9wSVGoTD1e+iZGtZ1lftRRM8BIgBFk+aZxV6SRLK8Tv3ng9QXSX5vxR5ih40fmZB V7Ct7rB3LBCo6AwzCCr+mydpmgSh4TtHMQwAb3vyoHJEOuPUyZI+jfeHUhe4PoX324BTTn sXVY5k7B+4l5kUmqAHzTKnDE53zNwDdv8yUDPT0sDMF6iqT906clg441c9F1MmmScomzaj FCiBhgrv6WNntAl11pxK++sfO3q56BnqG1yOzHxKu3rYDJadJC8cnjWXvu4KSQ51CvO4ib BzaZ85XmgxoRdhRMGwPcmaHZwmeXf9ZhjO9KpOnK+/jU29nV8KYp9AdnmzXpqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=5fed793a5086150bf8d2072651e8bf14a6f5e735 commit 5fed793a5086150bf8d2072651e8bf14a6f5e735 Author: Stefan Grundmann AuthorDate: 2022-02-09 03:15:53 +0000 Commit: Ed Maste CommitDate: 2022-02-16 00:39:34 +0000 vt: fix splash_cpu logos use of vd_drawrect In the (extremely unlikely) case of vd->vd_height == vt_logo_sprite_height the vd_drawrect code would write outside of frame-buffer memory. MFC after: 1 week Reviewed by: cem Differential Revision: https://reviews.freebsd.org/D34220 (cherry picked from commit 06296f77c5bc5ec1710a28b68b9410d192163087) --- sys/dev/vt/vt_cpulogos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/vt/vt_cpulogos.c b/sys/dev/vt/vt_cpulogos.c index c62b13a9097a..6450c89ead6d 100644 --- a/sys/dev/vt/vt_cpulogos.c +++ b/sys/dev/vt/vt_cpulogos.c @@ -135,8 +135,8 @@ vtterm_draw_cpu_logos(struct vt_device *vd) a = teken_get_curattr(&tm->tm_emulator); if (vd->vd_driver->vd_drawrect) - vd->vd_driver->vd_drawrect(vd, 0, 0, vd->vd_width, - vt_logo_sprite_height, 1, a->ta_bgcolor); + vd->vd_driver->vd_drawrect(vd, 0, 0, vd->vd_width - 1, + vt_logo_sprite_height - 1, 1, a->ta_bgcolor); /* * Blank is okay because we only ever draw beasties on full screen * refreshes.