Crash when using pinyin predictions

Bug #1407584 reported by Michael Sheldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Undecided
Unassigned
ubuntu-keyboard
Fix Released
High
Michael Sheldon
ubuntu-keyboard (Ubuntu)
Undecided
Unassigned
ubuntu-keyboard (Ubuntu RTM)
Undecided
Unassigned

Bug Description

Calls to pinyin_get_candidate aren't being checked for validity, resulting in the possibility of NULL candidates being passed to future libpinyin functions, resulting in crashes (example crash attached).

Steps to reproduce:

1) Enable Chinese pinyin layout

2) Type "h"

3) Press the "h" candidate on the word ribbon

Expected result:

"h" is input into a text field

Actual result:

The keyboard crashes.

Related branches

Revision history for this message
Michael Sheldon (michael-sheldon) wrote :
Changed in ubuntu-keyboard:
assignee: nobody → Michael Sheldon (michael-sheldon)
importance: Undecided → High
description: updated
Changed in ubuntu-keyboard:
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-keyboard - 0.99.trunk.phablet2+15.04.20150105-0ubuntu1

---------------
ubuntu-keyboard (0.99.trunk.phablet2+15.04.20150105-0ubuntu1) vivid; urgency=low

  [ CI Train Bot ]
  * Resync trunk

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Michael Sheldon ]
  * Check candidates provided by libpinyin are valid before using them
    (LP: #1407584)
 -- Ubuntu daily release <email address hidden> Mon, 05 Jan 2015 19:05:53 +0000

Changed in ubuntu-keyboard (Ubuntu):
status: New → Fix Released
Bill Filler (bfiller)
Changed in canonical-devices-system-image:
milestone: none → ww05-2015
status: New → Fix Released
Changed in ubuntu-keyboard (Ubuntu RTM):
status: New → Fix Released
Changed in ubuntu-keyboard:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers