Cause: crash could happen when a link insert was initiated in the HTML message format
Consequence: inserting an image and right after that a link could cause a crash due to no object type checking and casting an object into a type it was not, thus accessing object structure members with incorrect values.
Fix: proper type checking had been added
Result: application doesn't crash when a link is inserted right after inserting an image
The problem was that there was no type-checking, thus even the cursor was at an image object the code cast the structure to a text object, thus it was reading data which was not there. I added type-checking and fixed a cursor positioning, thus the changes in the URL description don't delete the image object.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-2226.html