Writing datasets with string arrays causes crash
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The vtkXMLWriter crashes at line 165 of vtkXMLWriter.cxx, ver.1.71 (length -= stringOffset;) when writing a dataset in appended mode which happens to contain a string array. The problem appears to arise because a new string is fetched at line 161 even when the previous string spanned a block and thus has not been completely written. It is then possible for stringOffset to be larger than the length of the new string causing a crash at line 177. I can see the problem but the fix is not straightforward.