This was reported in Debian quite some time ago (I was not maintainer then). I have fixed it in Debian and am forwarding my patch.
The original Debian bug report can be found at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715592
PSVIWriter uses strrchr but does not properly handle a NULL return value, causing strcat to attempt to dereference a NULL pointer.
My patch adds a check that the result of strrchr (for the '/' case) is not null before executing the strcat. The case for '
' is not affected because of the "greater than" check just prior.