[fixed]Bug: Crash if loaded OBJ contains invalid indices

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
mbohnen
Posts: 1
Joined: Tue Nov 04, 2014 3:46 pm

[fixed]Bug: Crash if loaded OBJ contains invalid indices

Post by mbohnen »

I submitted a rather simple patch on Sourceforge ( https://sourceforge.net/p/irrlicht/patches/296/ ) which prevents crashes when trying to load an OBJ which contains invalid indices for vertices, texture coords or vertex normals in the definition of a face.

Please consider applying this patch to Irrlicht. Thanks!
CuteAlien
Admin
Posts: 9651
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Bug: Crash if loaded OBJ contains invalid indices

Post by CuteAlien »

OK, I also think it's better with checks. Applied in trunk svn r4983. Thanks for the patch.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply