MeshLab crashes when opening a corrupt OBJ file. It appears that it does not check vertex indexes in a face to see if they are valid when importing an OBJ file. For example, the following line in an OBJ file would cause MeshLab to crash:
f 0 1 2
In this case, index 0 is not valid because indexes always start from 1 in an OBJ file. It is likely negative indexes or positive indexes greater than the number of defined vertices would cause MeshLab to crash as well, but this was not tested.
The attached OBJ file causes MeshLab 1.3.0 64-bit to crash when opening it.
My guess is that bounds checking should be done and the faulty faces should be discarded with perhaps a warning shown to the user.
OBJ file that causes MeshLab to crash.