public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Takao Fujiwara <tfujiwar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ibus] autotool: Fix to allocate compose output buffer with more than two chars
Date: Sun, 31 May 2026 02:07:17 GMT [thread overview]
Message-ID: <178019323732.1.12427821902979223637.rpms-ibus-d2b4f54f21fa@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/ibus
Branch : autotool
Commit : d2b4f54f21fabf24ba20a0c88a182ada258e1e60
Author : Takao Fujiwara <tfujiwar@redhat.com>
Date : 2019-10-04T20:50:15+09:00
Stats : +34/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/ibus/c/d2b4f54f21fabf24ba20a0c88a182ada258e1e60?branch=autotool
Log:
Fix to allocate compose output buffer with more than two chars
---
diff --git a/ibus-HEAD.patch b/ibus-HEAD.patch
index b7b0fa1..6faa10f 100644
--- a/ibus-HEAD.patch
+++ b/ibus-HEAD.patch
@@ -173,3 +173,33 @@ index 3a626230..2439de14 100644
--
2.21.0
+From 773420fad23078ceef83e8ae84bba4e139d0bea3 Mon Sep 17 00:00:00 2001
+From: fujiwarat <takao.fujiwara1@gmail.com>
+Date: Thu, 19 Sep 2019 17:09:46 +0900
+Subject: [PATCH] src: Fix to allocate compose output buffer with more than two
+ chars
+
+If the compose output chars are more than two, IBusCompose calls
+g_renew() but the size is not enough to insert '\0'.
+
+BUG=https://github.com/ibus/ibus/issues/2123
+---
+ src/ibuscomposetable.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/ibuscomposetable.c b/src/ibuscomposetable.c
+index 5fd37f10..dd9d31d4 100644
+--- a/src/ibuscomposetable.c
++++ b/src/ibuscomposetable.c
+@@ -148,7 +148,7 @@ parse_compose_value (IBusComposeData *compose_data,
+ } else {
+ compose_data->values = g_renew (gunichar,
+ compose_data->values,
+- n_uchars + 1);
++ n_uchars + 2);
+ }
+ compose_data->values[n_uchars++] = *up;
+ }
+--
+2.21.0
+
diff --git a/ibus.spec b/ibus.spec
index bd3a7bb..495d956 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -35,7 +35,7 @@
Name: ibus
Version: 1.5.21
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Intelligent Input Bus for Linux OS
License: LGPLv2+
URL: https://github.com/ibus/%name/wiki
@@ -461,6 +461,9 @@ dconf update || :
%{_datadir}/installed-tests/ibus
%changelog
+* Fri Oct 04 2019 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.21-3
+- Fix to allocate compose output buffer with more than two chars
+
* Fri Sep 13 2019 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.21-2
- Fix #1751940 - CVE-2019-14822 GDBusServer peer authorization
reply other threads:[~2026-05-31 2:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178019323732.1.12427821902979223637.rpms-ibus-d2b4f54f21fa@fedoraproject.org \
--to=tfujiwar@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox