Index: camel-partition-table.c
===================================================================
--- camel-partition-table.c	(revision 7915)
+++ camel-partition-table.c	(working copy)
@@ -868,8 +868,14 @@
 	kb = (CamelKeyBlock *)&bl->data;
 
 #if 1
-	g_assert(kb->used < 127); /* this should be more accurate */
-	g_assert(index < kb->used);
+	if(kb->used >= 127){
+		g_warning ("Block %x: Invalid kb->used: kb->used is %d must be less than 127", blockid, kb->used);
+		return 0;
+	}
+	if(index >= kb->used){
+		g_warning ("Block %x: Invalid index: index is %d cannot be greater than kb->used %d", blockid, index, kb->used);
+		return 0;
+	}
 #else
 	if (kb->used >=127 || index >= kb->used) {
 		g_warning("Block %x: Invalid index or content: index %d used %d\n", blockid, index, kb->used);
