Commit ec5ac1c6 authored by Bill Haneman's avatar Bill Haneman

Fix for crasher bug #153405. Patch from Padraig O'Briain.

parent 69940ef0
2005-11-01 Bill Haneman <billh@gnome.org>
* src/vteaccess.c:
(vte_terminal_accessible_get_text):
Swap offsets if start > end; fixes crasher
bug #153405. Patch from padraig o'briain,
thanks to Kjartan for review.
2005-10-02 Kjartan Maraas <kmaraas@gnome.org>
* src/vtebg.c: (_vte_property_get_pixmaps):
......
......@@ -922,6 +922,15 @@ vte_terminal_accessible_get_text(AtkText *text,
int start, end;
gchar *ret;
/* Swap around if start is greater than end */
if (start_offset > end_offset) {
gint tmp;
tmp = start_offset;
start_offset = end_offset;
end_offset = tmp;
}
g_return_val_if_fail((start_offset >= 0) && (end_offset >= -1),
g_strdup(""));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment