mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
less: backport the fix for CVE-2022-46663
(From OE-Core rev: 56d31067a34bc1942c7eb4940a41ecfc81110e58) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c7b6eb9e8e
commit
d4be0469a8
@@ -0,0 +1,28 @@
|
|||||||
|
CVE: CVE-2022-46663
|
||||||
|
Upstream-Status: Backport
|
||||||
|
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||||
|
|
||||||
|
From a78e1351113cef564d790a730d657a321624d79c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mark Nudelman <markn@greenwoodsoftware.com>
|
||||||
|
Date: Fri, 7 Oct 2022 19:25:46 -0700
|
||||||
|
Subject: [PATCH] End OSC8 hyperlink on invalid embedded escape sequence.
|
||||||
|
|
||||||
|
---
|
||||||
|
line.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/line.c b/line.c
|
||||||
|
index 236c49ae..cba7bdd1 100644
|
||||||
|
--- a/line.c
|
||||||
|
+++ b/line.c
|
||||||
|
@@ -633,8 +633,8 @@ ansi_step(pansi, ch)
|
||||||
|
/* Hyperlink ends with \7 or ESC-backslash. */
|
||||||
|
if (ch == '\7')
|
||||||
|
return ANSI_END;
|
||||||
|
- if (pansi->prev_esc && ch == '\\')
|
||||||
|
- return ANSI_END;
|
||||||
|
+ if (pansi->prev_esc)
|
||||||
|
+ return (ch == '\\') ? ANSI_END : ANSI_ERR;
|
||||||
|
pansi->prev_esc = (ch == ESC);
|
||||||
|
return ANSI_MID;
|
||||||
|
}
|
||||||
@@ -26,6 +26,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
|
|||||||
DEPENDS = "ncurses"
|
DEPENDS = "ncurses"
|
||||||
|
|
||||||
SRC_URI = "http://www.greenwoodsoftware.com/${BPN}/${BPN}-${PV}.tar.gz \
|
SRC_URI = "http://www.greenwoodsoftware.com/${BPN}/${BPN}-${PV}.tar.gz \
|
||||||
|
file://CVE-2022-46663.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "a69abe2e0a126777e021d3b73aa3222e1b261f10e64624d41ec079685a6ac209"
|
SRC_URI[sha256sum] = "a69abe2e0a126777e021d3b73aa3222e1b261f10e64624d41ec079685a6ac209"
|
||||||
|
|||||||
Reference in New Issue
Block a user