Reliable crash if atk_text_get_text() is called on icon with end_offset of -1
Steps to reproduce:
- Launch the attached pyatspi accessible-event listener in a terminalcrash-nautilus.py
- Launch Nautilus and be sure you're in icon view
- Click on an icon
Expected results: Nautilus would not crash.
Actual results: Nautilus reliably crashes.
According to https://developer.gnome.org/atk/stable/AtkText.html#atk-text-get-text:
end_offset: end position, or -1 for the end of the string.
If the character count is used instead, the crash doesn't happen.