[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [m17n-list] Fix segmentation fault when using ibus-m17n with vi-tele
From: |
handa |
Subject: |
Re: [m17n-list] Fix segmentation fault when using ibus-m17n with vi-telex in gedit in Gnome Wayland |
Date: |
Wed, 01 May 2019 22:36:10 +0900 |
In article <address@hidden>, Mike FABIAN <address@hidden> writes:
> Surrounding text support in Gnome running under Wayland is broken.
> The attached patch fixes a crash in m17n-lib caused by the broken
> surrounding text support.
Thank you for the report. I committed your change to the repository.
But, could you explain why the bug in Gnume leads to m17n_object_unref
being called with NULL?
---
K. Handa
address@hidden
> --
> Mike FABIAN <address@hidden>
> 睡眠不足はいい仕事の敵だ。
> >From 4d815754f9f32c54ec47f9e323940f6332a7cb5d Mon Sep 17 00:00:00 2001
> From: Mike FABIAN <address@hidden>
> Date: Tue, 30 Apr 2019 10:32:13 +0200
> Subject: [PATCH] Fix segmentation fault when using ibus-m17n with vi-telex in
> gedit in Gnome Wayland
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1704156
> ---
> src/m17n-core.c | 2 ++
> 1 file changed, 2 insertions(+)
> diff --git a/src/m17n-core.c b/src/m17n-core.c
> index fe5aa77..642dfee 100644
> --- a/src/m17n-core.c
> +++ b/src/m17n-core.c
> @@ -930,6 +930,8 @@ m17n_object_unref (void *object)
> M17NObjectRecord *record;
> unsigned *count;
> + if (object == NULL)
> + return -1;
> if (! obj->ref_count_extended)
> {
> if (! --obj->ref_count)
> --
> 2.20.1
- Re: [m17n-list] Fix segmentation fault when using ibus-m17n with vi-telex in gedit in Gnome Wayland,
handa <=