BGO#665549: add sanity-check of atk_text_get_text parameters
authorMike Gorse <mgorse@novell.com>
Sun, 4 Dec 2011 18:51:39 +0000 (12:51 -0600)
committerMike Gorse <mgorse@novell.com>
Thu, 22 Dec 2011 15:37:33 +0000 (10:37 -0500)
commit867d3f7debdd35738701156969f24544c4b6c5ce
treeca9b0213211d54f934fafa2f2a0e9ff9e77f00dc
parentebd85e5f03457adaa0c0310448d92f6639c52332
BGO#665549: add sanity-check of atk_text_get_text parameters

Have atk_text_get_text check that end_offset is either -1 or greater or
equal to the start offset before passing the query to the toolkit. Fixes
a gtk crash.

Also document that an end position of -1 to atk_text_get_text indicates the
end of the string
atk/atktext.c