[MOAB-dev] r1622 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed Feb 27 16:36:43 CST 2008


Author: kraftche
Date: 2008-02-27 16:36:43 -0600 (Wed, 27 Feb 2008)
New Revision: 1622

Modified:
   MOAB/trunk/TypeSequenceManager.cpp
Log:
add validity check

Modified: MOAB/trunk/TypeSequenceManager.cpp
===================================================================
--- MOAB/trunk/TypeSequenceManager.cpp	2008-02-27 22:32:48 UTC (rev 1621)
+++ MOAB/trunk/TypeSequenceManager.cpp	2008-02-27 22:36:43 UTC (rev 1622)
@@ -88,6 +88,10 @@
   if (!seq_ptr->data())
     return MB_FAILURE;
 
+  if (seq_ptr->data()->start_handle() > seq_ptr->start_handle() ||
+      seq_ptr->data()->end_handle() < seq_ptr->end_handle())
+    return MB_FAILURE;
+
   iterator i = lower_bound( seq_ptr->start_handle() );
   if (i != end()) {
     if ((*i)->start_handle() <= seq_ptr->end_handle())




More information about the moab-dev mailing list