[git/master] VisItBridge GMVReader can trigger null pointer dereference in gmvread.c
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Unpack the attached "gmvfiles.zip". The files contained are derived from the sample ASCII GMV file "gmvtest.inp" that traditionally shipped with GMV binaries since at least February 2000. The only difference is that they use a "fromfile" for point and cell definitions. The two "fromfiles" have identical content, but different names and the directories where they are stored have a different recursion depth (both of which is crucial to trigger the issue).
(Convert all 4 extracted files to carriage return-line feed endings if you are on Windows while issue 13553 is unresolved.)
Download nightly build ParaViewSuperbuild.
Load "file2load1st/gmvtest.inp.gmv" by means of the VisItBridge GMVReader. Apply. Delete. Load "../file2load2nd.gmv" by means of the VisItBridge GMVReader.
=> vtkVisItGMVReader will report "Unable to find any meshes" (which is bogus, because loading "file2load2nd.gmv" without having loaded "file2load1st/gmvtest.inp.gmv" first works fine)
Delete.
=> ParaView will segfault because of an attempted null pointer dereference in gmvread_close() (gmvread.c:438).
Patch attached.