From: Braden M. <br...@en...> - 2008-07-25 08:30:57
|
On Thu, 2008-07-24 at 18:53 +0200, Zoltán Török wrote: > Hi, > > The attached wrl file (made with 3DS max 2009) causes a 'vector subscription > out of range' assertion > in viewer.cpp@line:3082 I've attached a patch that should address this (and other) problems. While the crash you noted was squarely the fault of OpenVRML, fixing it led to a crash due to some invalid data in room.wrl. The node WALL02-FACES uses 24 as a coordIndex; but there are only 24 coordinates. (Coordinates are indexed starting at 0; so 24 is out of range.) Nonetheless, crashing is not an appropriate response to invalid input; so this, too, has been fixed. This patch makes OpenVRML skip invalid coordinate indices (along with any subsequent indices in the same polygon). This patch was created against the trunk; but I suspect it will apply cleanly to 0.17.6. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |