diff mbox series

[meta-oe,dunfell] xterm: Remove undeclared variables introduced by backport

Message ID 20230310153634.3376415-1-crogers122@gmail.com
State New
Headers show
Series [meta-oe,dunfell] xterm: Remove undeclared variables introduced by backport | expand

Commit Message

Chris Rogers March 10, 2023, 3:36 p.m. UTC
CVE-2022-45063 ported onto the dunfell baseline introduces two
variables that cause xterm to fail compilation with the error

./fontutils.c:4143:13: error: 'added' undeclared (first use in this function)

These two variables don't appear to be defined at all in findXftGlyph for
xterm_353, so they should be removed.

Fixes: 10148c538ebc("xterm : Fix CVE-2022-45063 code execution via OSC 50 input sequences] CVE-2022-45063")
Signed-off-by: Chris Rogers <crogers122@gmail.com>
---
 .../xorg-app/xterm/CVE-2022-45063.patch       | 21 ++++++-------------
 1 file changed, 6 insertions(+), 15 deletions(-)

Comments

Jason Andryuk March 13, 2023, 5:57 p.m. UTC | #1
Tested-by: Jason Andryuk <jandryuk@gmail.com>
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/xorg-app/xterm/CVE-2022-45063.patch b/meta-oe/recipes-graphics/xorg-app/xterm/CVE-2022-45063.patch
index 8d1be3210..e63169a20 100644
--- a/meta-oe/recipes-graphics/xorg-app/xterm/CVE-2022-45063.patch
+++ b/meta-oe/recipes-graphics/xorg-app/xterm/CVE-2022-45063.patch
@@ -574,16 +574,7 @@  index 4b0ef85..d9bfaf8 100644
  			}
  		    }
  		}
-@@ -4119,6 +4140,8 @@ findXftGlyph(XtermWidget xw, XftFont *given, unsigned wc)
- 		    }
- #endif
- 		    if (foundXftGlyph(xw, check, wc)) {
-+	    (void) added;
-+	    (void) actual;
- 			markXftOpened(xw, which, n, wc);
- 			reportXftFonts(xw, check, "fallback", tag, myReport);
- 			result = check;
-@@ -4317,7 +4340,7 @@ lookupOneFontSize(XtermWidget xw, int fontnum)
+@@ -4317,7 +4338,7 @@ lookupOneFontSize(XtermWidget xw, int fontnum)
  
  	memset(&fnt, 0, sizeof(fnt));
  	screen->menu_font_sizes[fontnum] = -1;
@@ -592,7 +583,7 @@  index 4b0ef85..d9bfaf8 100644
  	    if (fontnum <= fontMenu_lastBuiltin
  		|| strcmp(fnt.fn, DEFFONT)) {
  		screen->menu_font_sizes[fontnum] = FontSize(fnt.fs);
-@@ -4722,13 +4745,14 @@ HandleSetFont(Widget w GCC_UNUSED,
+@@ -4722,13 +4743,14 @@ HandleSetFont(Widget w GCC_UNUSED,
      }
  }
  
@@ -608,7 +599,7 @@  index 4b0ef85..d9bfaf8 100644
  
      TRACE(("SetVTFont(which=%d, f_n=%s, f_b=%s)\n", which,
  	   (fonts && fonts->f_n) ? fonts->f_n : "<null>",
-@@ -4737,34 +4761,31 @@ SetVTFont(XtermWidget xw,
+@@ -4737,34 +4759,31 @@ SetVTFont(XtermWidget xw,
      if (IsIcon(screen)) {
  	Bell(xw, XkbBI_MinorError, 0);
      } else if (which >= 0 && which < NMENUFONTS) {
@@ -659,7 +650,7 @@  index 4b0ef85..d9bfaf8 100644
  	    }
  
  	    USE_CACHED(f_n, fNorm);
-@@ -4774,7 +4795,7 @@ SetVTFont(XtermWidget xw,
+@@ -4774,7 +4793,7 @@ SetVTFont(XtermWidget xw,
  	    USE_CACHED(f_wb, fWBold);
  #endif
  	    if (xtermLoadFont(xw,
@@ -668,7 +659,7 @@  index 4b0ef85..d9bfaf8 100644
  			      doresize, which)) {
  		/*
  		 * If successful, save the data so that a subsequent query via
-@@ -4786,10 +4807,8 @@ SetVTFont(XtermWidget xw,
+@@ -4786,10 +4805,8 @@ SetVTFont(XtermWidget xw,
  		SAVE_FNAME(f_w, fWide);
  		SAVE_FNAME(f_wb, fWBold);
  #endif
@@ -680,7 +671,7 @@  index 4b0ef85..d9bfaf8 100644
  		Bell(xw, XkbBI_MinorError, 0);
  	    }
  	    FREE_FNAME(f_n);
-@@ -4802,7 +4821,8 @@ SetVTFont(XtermWidget xw,
+@@ -4802,7 +4819,8 @@ SetVTFont(XtermWidget xw,
      } else {
  	Bell(xw, XkbBI_MinorError, 0);
      }