GNOME Bugzilla – Bug 248664
Program crash when using at-poke to edit text in e-text
Last modified: 2004-09-29 20:43:00 UTC
Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: Program crash when using at-poke to edit(copy/cut/delete/paste) text in e-text Steps to reproduce the problem: 1. export GNOME_ACCESSIBILITY=1 2. launch a program using e-text(e.g. test-text in "tests" dir of gal) 3. use at-poke to poke the e-text widget. 4. select nothing in e-text and then press "delete" in at-poke Actual Results: program crash (in my system I have to restart X) Expected Results: don't crash How often does this happen? always Additional Information:
This bug is caused by incomplete implementation of gal-a11y-e-text. When press "delete" (or "cut","copy",etc) in at-poke, at-poke will invoke the function "et_delete_text" in gal/a11y/e-text/gal-a11y-e-text.c. The function needs 2 params (start_pos and end_pos) which give the range of the text being delete. But at-poke will pass some invalid values into the function. This is bacause at-poke will get the selection range as the input params of et_delete_text, and the selection range of e-text is retrieved by the function "et_get_selection" which hasn't been complete yet. Anyway, in "et_delete_text" some checking code is needed to ensure the range of text being delete is valid.
after applying new patch (see bug 247034) bug resolved