Revision: 44690
http://brlcad.svn.sourceforge.net/brlcad/?rev=44690&view=rev
Author: davidloman
Date: 2011-05-25 18:38:58 +0000 (Wed, 25 May 2011)
Log Message:
-----------
Check for solids. Solids don't have children!
Modified Paths:
--------------
geomcore/trunk/src/GS/BrlcadDb.cxx
Modified: geomcore/trunk/src/GS/BrlcadDb.cxx
===================================================================
--- geomcore/trunk/src/GS/BrlcadDb.cxx 2011-05-25 18:20:16 UTC (rev 44689)
+++ geomcore/trunk/src/GS/BrlcadDb.cxx 2011-05-25 18:38:58 UTC (rev 44690)
@@ -161,6 +161,10 @@
if (rt_db_get_internal5(&in, dp, dbip, NULL, &rt_uniresource) < 0)
return CORRUPT_OBJ_DATA;
+ //check in.idb_major_type and in.idb_minor_type here
+ if (in.idb_major_type != DB5_MAJORTYPE_BRLCAD || in.idb_type !=
ID_COMBINATION)
+ return 0;
+
comb = (struct rt_comb_internal *) in.idb_ptr;
size_t i;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits