public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ibus] autotool: Resolves: #2365138 Fix to realloc Xi18nAtomOffsetPair in i18nOffsetCache.c
@ 2026-05-31  2:09 Takao Fujiwara
  0 siblings, 0 replies; only message in thread
From: Takao Fujiwara @ 2026-05-31  2:09 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ibus
Branch : autotool
Commit : 9f772e024c10d2961ac12ba736e7d3ad6f21cec3
Author : Takao Fujiwara <tfujiwar@redhat.com>
Date   : 2025-09-07T09:56:41+09:00
Stats  : +36/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/ibus/c/9f772e024c10d2961ac12ba736e7d3ad6f21cec3?branch=autotool

Log:
Resolves: #2365138 Fix to realloc Xi18nAtomOffsetPair in i18nOffsetCache.c

---
diff --git a/ibus-HEAD.patch b/ibus-HEAD.patch
index e69de29..3dbaf44 100644
--- a/ibus-HEAD.patch
+++ b/ibus-HEAD.patch
@@ -0,0 +1,31 @@
+From 0991768f5f836c2b3f660040892fa1e60c2c1f22 Mon Sep 17 00:00:00 2001
+From: fujiwarat <takao.fujiwara1@gmail.com>
+Date: Sun, 7 Sep 2025 09:38:09 +0900
+Subject: [PATCH] util/IMdkit/i18nOffsetCache.c: Fix to realloc Xi18nAtomOffsetPair
+
+Fixes: https://github.com/ibus/ibus/commit/d039b95
+BUG=rhbz#2365138
+---
+ util/IMdkit/i18nOffsetCache.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/util/IMdkit/i18nOffsetCache.c b/util/IMdkit/i18nOffsetCache.c
+index cab974c7..ac4b8bb1 100644
+--- a/util/IMdkit/i18nOffsetCache.c
++++ b/util/IMdkit/i18nOffsetCache.c
+@@ -83,9 +83,10 @@ void _Xi18nSetPropertyOffset (Xi18nOffsetCache *offset_cache, Atom key,
+     }
+ 
+     if (++offset_cache->size > offset_cache->capacity) {
+-        Xi18nAtomOffsetPair *pair = (Xi18nAtomOffsetPair *) realloc (data,
+-                offset_cache->capacity * sizeof (Xi18nAtomOffsetPair));
++        Xi18nAtomOffsetPair *pair;
+         offset_cache->capacity *= OFFSET_CACHE_GROWTH_FACTOR;
++        pair = (Xi18nAtomOffsetPair *) realloc (data,
++                offset_cache->capacity * sizeof (Xi18nAtomOffsetPair));
+         if (pair) {
+             offset_cache->data = pair;
+         } else {
+-- 
+2.50.1
+

diff --git a/ibus.spec b/ibus.spec
index c30a982..0f97fb8 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -63,7 +63,7 @@
 Name:           ibus
 Version:        1.5.33~beta1
 # https://github.com/fedora-infra/rpmautospec/issues/101
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Intelligent Input Bus for Linux OS
 License:        LGPL-2.1-or-later
 URL:            https://github.com/ibus/%name/wiki
@@ -72,6 +72,7 @@ Source1:        https://github.com/ibus/%name/releases/download/%{source_version
 Source2:        %{name}-xinput
 Source3:        %{name}.conf.5
 # Patch0:         %%{name}-HEAD.patch
+Patch0:         %{name}-HEAD.patch
 # Under testing #1349148 #1385349 #1350291 #1406699 #1432252 #1601577
 Patch1:         %{name}-1385349-segv-bus-proxy.patch
 
@@ -638,6 +639,9 @@ dconf update || :
 %{_datadir}/installed-tests/ibus
 
 %changelog
+* Sun Sep 07 2025 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.33~beta1-2
+- Resolves: #2365138 Fix to realloc Xi18nAtomOffsetPair in i18nOffsetCache.c
+
 * Fri Aug 22 2025 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.33~beta1-1
 - Implement preedit semantic APIs
 - Fix tests/ibus-keypress for Wayland

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-31  2:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-31  2:09 [rpms/ibus] autotool: Resolves: #2365138 Fix to realloc Xi18nAtomOffsetPair in i18nOffsetCache.c Takao Fujiwara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox