Some of the .obj exporters don't end the file by ascii 0 so irrlich crashes when it tries to load that kind of file.
This is a quick fix for this condition that assures that the buffer will be zero ended:
--- CStaticMeshOBJ.cpp Sat Dec 27 13:12:00 2003
+++ CStaticMeshOBJ.cpp.new Thu May 6 00:47:16 2004
@@ -64,8 +64,9 @@
if (!filesize)
return false;
- c8* buf = new c8[filesize];
+ c8* buf = new c8[filesize + 1];
file->read((void*)buf, filesize);
+ buf[filesize] = 0;
c8* line = buf;