26 Jun
2008
26 Jun
'08
6:11 p.m.
Bob Jamison wrote:
In any case, bad data should be handled gracefully, not with a killer assertion.
The general rule is to be forgiving on input, strict on output.
I agree but I don't think the solution is to make our parser less strict. If we are parsing our own sloppy invalid svgd (as I believe is happening in this case) we should fail so that a bug will get filed and we can fix it. During input of an unknown user file we should catch the exception on a failed parse and alert the user that their file is corrupted or invalid and offer to attempt to repair it.
Aaron Spike