Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2771)

Issue 5498090: Fix ibus-x11 SEGV in _process_key_event_done. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by fujiwara
Modified:
12 years, 2 months ago
Reviewers:
shawn.p.huang
CC:
shawn.p.huang_gmail.com
Base URL:
git://github.com/ibus/ibus.git@master
Visibility:
Public.

Description

Fix ibus-x11 SEGV in _process_key_event_done. IMForwardEvent() calls _Xi18nFindClient() and it could return NULL. Maybe the connect_id would be disconnected during the async process_key_event. This fix checks XIM_DISCONNECT in ims_protocol_handler() to cancel IMForwardEvent() in _process_key_event_done(). BUG=RH#769135 TEST=Linux desktop

Patch Set 1 #

Total comments: 3

Patch Set 2 : Updated patch to follow Message #2 #

Total comments: 2

Patch Set 3 : Removed xim_connect_ic #

Total comments: 1

Patch Set 4 : Updated with message #10. #

Patch Set 5 : Updated with the latest master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -9 lines) Patch
M client/x11/main.c View 1 2 3 3 chunks +41 lines, -9 lines 0 comments Download

Messages

Total messages: 12
fujiwara
12 years, 6 months ago (2011-12-30 05:05:29 UTC) #1
Peng
http://codereview.appspot.com/5498090/diff/1/client/x11/main.c File client/x11/main.c (right): http://codereview.appspot.com/5498090/diff/1/client/x11/main.c#newcode469 client/x11/main.c:469: if (pfe->connect_id == disconnected_id) { Instead of checking with ...
12 years, 6 months ago (2011-12-30 15:33:38 UTC) #2
fujiwara
I revised the patch. Thanks. On 2011/12/30 15:33:38, Peng wrote: > http://codereview.appspot.com/5498090/diff/1/client/x11/main.c > File client/x11/main.c ...
12 years, 6 months ago (2011-12-31 18:10:48 UTC) #3
Peng
http://codereview.appspot.com/5498090/diff/4001/client/x11/main.c File client/x11/main.c (right): http://codereview.appspot.com/5498090/diff/4001/client/x11/main.c#newcode574 client/x11/main.c:574: g_hash_table_insert (_connections, Should we create the conn in xim_open ...
12 years, 5 months ago (2012-01-03 15:27:44 UTC) #4
fujiwara
On 2012/01/03 15:27:44, Peng wrote: > http://codereview.appspot.com/5498090/diff/4001/client/x11/main.c > File client/x11/main.c (right): > > http://codereview.appspot.com/5498090/diff/4001/client/x11/main.c#newcode574 > ...
12 years, 5 months ago (2012-01-04 06:02:49 UTC) #5
Peng
On 2012/01/04 06:02:49, fujiwara wrote: > On 2012/01/03 15:27:44, Peng wrote: > > http://codereview.appspot.com/5498090/diff/4001/client/x11/main.c > ...
12 years, 5 months ago (2012-01-04 15:25:31 UTC) #6
fujiwara
On 2012/01/04 15:25:31, Peng wrote: > On 2012/01/04 06:02:49, fujiwara wrote: > > On 2012/01/03 ...
12 years, 5 months ago (2012-01-05 02:30:42 UTC) #7
Peng
On 2012/01/05 02:30:42, fujiwara wrote: > On 2012/01/04 15:25:31, Peng wrote: > > On 2012/01/04 ...
12 years, 4 months ago (2012-02-29 15:41:49 UTC) #8
fujiwara
On 2012/02/29 15:41:49, Peng wrote: > On 2012/01/05 02:30:42, fujiwara wrote: > > On 2012/01/04 ...
12 years, 2 months ago (2012-04-02 03:58:19 UTC) #9
Peng
https://codereview.appspot.com/5498090/diff/10001/client/x11/main.c File client/x11/main.c (right): https://codereview.appspot.com/5498090/diff/10001/client/x11/main.c#newcode635 client/x11/main.c:635: xim_disconnect_ic (XIMS xims, IMDisConnectStruct *call_data) The code is almost ...
12 years, 2 months ago (2012-04-04 17:10:51 UTC) #10
fujiwara
On 2012/04/04 17:10:51, Peng wrote: > https://codereview.appspot.com/5498090/diff/10001/client/x11/main.c > File client/x11/main.c (right): > > https://codereview.appspot.com/5498090/diff/10001/client/x11/main.c#newcode635 > ...
12 years, 2 months ago (2012-04-05 01:41:18 UTC) #11
Peng
12 years, 2 months ago (2012-04-05 17:34:28 UTC) #12
Lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b