After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 540183 - at-spi-registryd can crash when synthesizing a key string
at-spi-registryd can crash when synthesizing a key string
Status: RESOLVED FIXED
Product: at-spi
Classification: Platform
Component: registry
1.23.x
Other All
: Normal normal
: ---
Assigned To: Li Yuan
Li Yuan
Depends on:
Blocks:
 
 
Reported: 2008-06-25 16:31 UTC by Mike Gorse
Modified: 2008-11-27 06:14 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Patch. (695 bytes, patch)
2008-06-25 16:39 UTC, Mike Gorse
committed Details | Review

Description Mike Gorse 2008-06-25 16:31:17 UTC
Please describe the problem:
dec_synth_keystring allocates an array that isn't quite long enough (it doesn't allocate space for the terminator), so it can crash when it tries to free the array.

Steps to reproduce:
1. 
2. 
3. 
run test/keysynth-test

Actual results:
at-spi-registryd crashes, and keysynth-test reports a CORBA exception

Expected results:
Some text should be inserted into the focused application

Does this happen every time?
on my system, yes

Other information:
Comment 1 Mike Gorse 2008-06-25 16:39:38 UTC
Created attachment 113416 [details] [review]
Patch.

The first change is unrelated, but it it is a change that I've been carrying around.
Comment 2 Li Yuan 2008-06-30 09:07:03 UTC
I'd prefer to add ifdef to all the g_print in that file.