Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
41ff320c00
!41 upgrade version to 388
From: @zhangkea 
Reviewed-by: @weidongkl 
Signed-off-by: @weidongkl
2023-12-27 05:39:48 +00:00
ut001695
4e8e914eb6 Upgrade version 388 2023-12-20 10:19:42 +08:00
openeuler-ci-bot
0b38e74de3
!39 Update to version 384
From: @dedv_dwe 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
2023-08-14 05:56:58 +00:00
ut004527
504f9ac1d5 Update to version 384 2023-08-14 11:14:57 +08:00
openeuler-ci-bot
7bad1ee20d
!34 [sync] PR-33: fix bogus date in %changelog
From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2023-04-20 02:26:27 +00:00
htpeng
50bba0d23b fix bogus date in %changelog
Signed-off-by: htpeng <htpengc@isoftstone.com>
(cherry picked from commit 56add54f403ba9e80279c6d00a6f8243421ab8ab)
2023-04-20 09:46:10 +08:00
openeuler-ci-bot
4cac21caff
!19 fix CVE-2022-24130
From: @xing_xing1992 
Reviewed-by: @zzm_567, @small_leek 
Signed-off-by: @small_leek
2022-02-22 08:35:55 +00:00
xingxing
7842a22baa fix CVE-2022-24130 2022-02-22 16:05:54 +08:00
openeuler-ci-bot
69a716018b !18 xterm delete -S git from %autosetup, and delete BuildRequires git
From: @chenyanpanHW
Reviewed-by: 
Signed-off-by:
2021-08-03 08:15:16 +00:00
chenyanpanHW
906aa9c680
delete -S git from %autosetup, and delete BuildRequires git 2021-07-30 23:41:14 +08:00
4 changed files with 21 additions and 60 deletions

View File

@ -1,52 +0,0 @@
From 82ba55b8f994ab30ff561a347b82ea340ba7075c Mon Sep 17 00:00:00 2001
From: "Thomas E. Dickey" <dickey@invisible-island.net>
Date: Tue, 9 Feb 2021 23:04:41 +0000
Subject: [PATCH] snapshot of project "xterm", label xterm-365d
--- a/button.c
+++ b/button.c
@@ -4323,6 +4323,7 @@ SaltTextAway(XtermWidget xw,
int i;
int eol;
int need = 0;
+ size_t have = 0;
Char *line;
Char *lp;
CELL first = *cellc;
@@ -4357,7 +4358,11 @@ SaltTextAway(XtermWidget xw,
/* UTF-8 may require more space */
if_OPT_WIDE_CHARS(screen, {
- need *= 4;
+ if (need > 0) {
+ if (screen->max_combining > 0)
+ need += screen->max_combining;
+ need *= 6;
+ }
});
/* now get some memory to save it in */
@@ -4395,10 +4400,20 @@ SaltTextAway(XtermWidget xw,
}
*lp = '\0'; /* make sure we have end marked */
- TRACE(("Salted TEXT:%u:%s\n", (unsigned) (lp - line),
- visibleChars(line, (unsigned) (lp - line))));
+ have = (size_t) (lp - line);
+ /*
+ * Scanning the buffer twice is unnecessary. Discard unwanted memory if
+ * the estimate is too-far off.
+ */
+ if ((have * 2) < (size_t) need) {
+ scp->data_limit = have + 1;
+ line = realloc(line, scp->data_limit);
+ }
+
+ TRACE(("Salted TEXT:%u:%s\n", (unsigned) have,
+ visibleChars(line, (unsigned) have)));
- scp->data_length = (size_t) (lp - line);
+ scp->data_length = have;
}
#if OPT_PASTE64

Binary file not shown.

BIN
xterm-388.tgz Normal file

Binary file not shown.

View File

@ -1,14 +1,12 @@
Name: xterm
Version: 363
Release: 2
Version: 388
Release: 1
Summary: It is a terminal emulator for the X Window System
License: MIT
URL: http://invisible-island.net/xterm
Source0: https://invisible-mirror.net/archives/xterm/xterm-%{version}.tgz
Patch6000: backport-CVE-2021-27135.patch
BuildRequires: gcc git pkgconfig ncurses-devel libutempter-devel
BuildRequires: gcc pkgconfig ncurses-devel libutempter-devel
BuildRequires: libXft-devel libXaw-devel libXext-devel desktop-file-utils
BuildRequires: libxkbfile-devel xorg-x11-apps
@ -28,7 +26,7 @@ Summary: Doc files for xterm
The xterm-help package contains doc files for xterm.
%prep
%autosetup -n xterm-363 -p1 -S git
%autosetup -n xterm-%{version} -p1
iconv -f iso8859-1 -t utf-8 < THANKS > TEMP
touch -r THANKS TEMP; mv TEMP THANKS
@ -64,13 +62,28 @@ install -m 644 -p xterm.appdata.xml %{buildroot}/%{_datadir}/appdata
%{_mandir}/man1/*
%changelog
* Wed Dec 20 2023 zhangkea <zhangkea@uniontech.com> - 388-1
- Update to version 388
* Mon Aug 14 2023 wangqia <wangqia@uniontech.com> - 384-1
- Update to version 384
* Thu Apr 13 2023 penghaitao <htpengc@isoftstone.com> - 363-5
- fix bogus date in %changelog
* Tue Feb 22 2022 xingxing <xingxing9@h-partners.com> - 363-4
- fix CVE-2022-24130
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 363-3
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Wed Mar 03 2021 jinzhimin <jinzhimin2@huawei.com> - 363-2
- fix CVE-2021-27135
* Thu Jan 28 2021 jinzhimin <jinzhimin2@huawei.com> - 363-1
- Upgrade to 363
* Thu Sep 29 2020 hanhui <hanhui15@huawei.com> - 334-6
* Tue Sep 29 2020 hanhui <hanhui15@huawei.com> - 334-6
- Type:bugfix
- ID:NA
- SUG:NA
@ -82,7 +95,7 @@ install -m 644 -p xterm.appdata.xml %{buildroot}/%{_datadir}/appdata
- SUG:NA
- DESC:modify source url
* Thu Jan 3 2020 openEuler Buildteam <buildteam@openeuler.org> - 334-4
* Fri Jan 3 2020 openEuler Buildteam <buildteam@openeuler.org> - 334-4
- Type:bugfix
- ID:NA
- SUG:NA