Hello,

Dia crashes if it is attempted to export shape to a
file, which extension is not .shape (the UI allows to
type whatever file extension the user likes or no
extension at all). The problem seems to come from
plug-ins/shape/shape-export.c, where after the lines:
point = strrchr(filename, '.'); it is not checked if
point == NULL (no file extension). Also the line:
strlen(g_basename(filename))-6);
makes assumption of the extension length, which may
not be correct. Attached is suggestion for fix.

Plamen



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Attachment: shape-export.patch.gz
Description: 1396696496-shape-export.patch.gz

_______________________________________________
Dia-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia

Reply via email to