Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
fe715b5cdd
!16 fix CVE-2025-26595
From: @ultra_planet 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2025-02-27 07:39:06 +00:00
lingsheng
c9bc2c3d88 fix CVE-2025-26595 2025-02-27 14:25:09 +08:00
openeuler-ci-bot
4758c3d45b
!12 Upgrade to 1.1.2
From: @li-long315 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2023-02-16 11:31:58 +00:00
li-long315
593446aa5e Upgrade to 1.1.2 2023-02-14 16:02:23 +08:00
openeuler-ci-bot
51c4914b6e
!11 [sync] PR-9: 【轻量级 PR】:Rebuild for next release
From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2022-10-28 08:31:30 +00:00
zhouwenpei
cc5483824b Rebuild for next release
Signed-off-by: zhouwenpei <zhouwenpei050@chinasoftinc.com>
(cherry picked from commit acaad8b8bed044f1daf98a4df06c75a14290238f)
2022-10-27 14:39:11 +08:00
openeuler-ci-bot
e7a73631d1
!5 [sync] PR-2: add check in spec and rebuild libxkbfile
From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2022-04-25 07:57:26 +00:00
jzm369
fc46fb81cb add check in spec and rebuild libxkbfile
(cherry picked from commit 85c40a767f8c6dd855153c077a76833b418ec507)
2022-04-24 17:09:52 +08:00
openeuler-ci-bot
174c13b544 !1 add yaml file in package
Merge pull request !1 from maqiang/master
2020-07-21 12:10:41 +08:00
maqiang
a00809f6e1 update libxkbfile.yaml. 2020-07-21 12:08:01 +08:00
6 changed files with 96 additions and 7 deletions

View File

@ -0,0 +1,58 @@
From 65977c33a6735b0ffc7d2c691243452f75c1f68c Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <ofourdan@redhat.com>
Date: Wed, 27 Nov 2024 14:41:45 +0100
Subject: [PATCH] xkb: Fix buffer overflow in XkbVModMaskText()
The code in XkbVModMaskText() allocates a fixed sized buffer on the
stack and copies the virtual mod name.
There's actually two issues in the code that can lead to a buffer
overflow.
First, the bound check mixes pointers and integers using misplaced
parenthesis, defeating the bound check.
But even though, if the check fails, the data is still copied, so the
stack overflow will occur regardless.
Change the logic to skip the copy entirely if the bound check fails.
(cherry picked from xorg/xserver@11fcda8753e994e15eb915d28cf487660ec8e722)
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
---
src/xkbtext.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/xkbtext.c b/src/xkbtext.c
index 4459ca7..59429b2 100644
--- a/src/xkbtext.c
+++ b/src/xkbtext.c
@@ -190,14 +190,14 @@ XkbVModMaskText(Display * dpy,
len = strlen(tmp) + 1 + (str == buf ? 0 : 1);
if (format == XkbCFile)
len += 4;
- if ((str - (buf + len)) <= BUFFER_SIZE) {
- if (str != buf) {
- if (format == XkbCFile)
- *str++ = '|';
- else
- *str++ = '+';
- len--;
- }
+ if ((str - buf) + len > BUFFER_SIZE)
+ continue; /* Skip */
+ if (str != buf) {
+ if (format == XkbCFile)
+ *str++ = '|';
+ else
+ *str++ = '+';
+ len--;
}
if (format == XkbCFile)
sprintf(str, "%sMask", tmp);
--
GitLab

8
baselibs.conf Normal file
View File

@ -0,0 +1,8 @@
libxkbfile1
provides "xorg-x11-libxkbfile-<targettype> = 7.6_<version>"
obsoletes "xorg-x11-libxkbfile-<targettype> < 7.6_<version>"
libxkbfile-devel
requires -libxkbfile-<targettype>
requires "libxkbfile1-<targettype> = <version>"
provides "xorg-x11-libxkbfile-devel-<targettype> = 7.6_<version>"
obsoletes "xorg-x11-libxkbfile-devel-<targettype> < 7.6_<version>"

Binary file not shown.

BIN
libxkbfile-1.1.2.tar.xz Normal file

Binary file not shown.

View File

@ -1,12 +1,16 @@
%define lname libxkbfile1
Name: libxkbfile
Version: 1.1.0
Release: 2
Version: 1.1.2
Release: 2
Summary: X11 keyboard file manipulation library
License: MIT
URL: https://www.x.org
Source0: https://www.x.org/releases/individual/lib/%{name}-%{version}.tar.bz2
Source0: https://www.x.org/releases/individual/lib/%{name}-%{version}.tar.xz
Source1: baselibs.conf
BuildRequires: gcc xorg-x11-proto-devel libX11-devel
Patch6000: backport-CVE-2025-26595.patch
BuildRequires: autoconf >= 2.60 automake libtool pkgconfig pkgconfig(kbproto) pkgconfig(x11) pkgconfig(xorg-macros) >= 1.8
%description
Libxkbfile is used by the X servers and utilities to parse the XKB
@ -23,16 +27,20 @@ This package is the development files for %{name}.
%autosetup -n %{name}-%{version} -p1
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure
%configure --disable-static
%make_build
%check
make check
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%delete_la_and_a
%ldconfig_scriptlets
%files
%defattr(-,root,root)
%license COPYING
@ -46,6 +54,21 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%{_libdir}/%{name}.so
%changelog
* Thu Feb 27 2025 lingsheng <lingsheng1@h-partners.com> - 1.1.2-2
- fix CVE-2025-26595
* Tue Feb 14 2023 lilong <lilong@kylinos.cn> - 1.1.2-1
- Upgrade to 1.1.2
* Wed Oct 26 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.1.0-5
- Rebuild for next release
* Thu Feb 18 2021 jinzhimin <jinzhimin2@huawei.com> - 1.1.0-4
- rebuild libxkbfile
* Thu Feb 18 2021 jinzhimin <jinzhimin2@huawei.com> - 1.1.0-3
- add check in spec
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.0-2
- Type:enhancement
- Id:NA

View File

@ -1,5 +1,5 @@
version_control: git
src_repo: git@gitlab.freedesktop.org:xorg/lib/libxkbfile.git
src_repo: https://gitlab.freedesktop.org/xorg/lib/libxmu.git
tag_prefix: libxkbfile-
seperator: "."