Dia should not crash on highly broken files (created by PostgreSQL Autodoc)
Submitted by Rod Taylor
Link to original bug (#302781)
Description
Steps to reproduce:
- Generate a document with PostgreSQL Autodoc
- Load the resulting .dia file with Dia
Stack trace: ** (dia:41078): WARNING **: No attribute obj_pos (0x0) or no data(0x0) in this attribute
** (dia:41078): WARNING **: No attribute obj_bb (0x0) or no data(0x0) in this attribute
** (dia:41078): WARNING **: No attribute elem_corner (0x0) or no data(0x0) in this attribute
** (dia:41078): WARNING **: No attribute elem_width (0x0) or no data(0x0) in this attribute
** (dia:41078): WARNING **: No attribute elem_height (0x0) or no data(0x0) in this attribute
GLib-ERROR **: gmem.c:141: failed to allocate 18446744073709551584 bytes
Other information: These documents used to load fine in older versions of dia. Moving the objects would connect the lines to the correct place.
Dia is free to reject the file, but crashing is definitely the wrong answer.
Version: 0.94