Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : oops, about 3000 blocks unchecked in heap comparison algorithm ....
[simgrid.git] / src / xbt / mmalloc / mm_diff.c
index 72e8845..17dca5f 100644 (file)
@@ -208,7 +208,7 @@ int mmalloc_compare_mdesc(struct mdesc *mdp1, struct mdesc *mdp2, void* s_heap,
 
   /* Check busy blocks*/
 
-  while(i < mdp1->heapindex){
+  while(i < mdp1->heaplimit){
 
     if(mdp1->heapinfo[i].type != mdp2->heapinfo[i].type){
       fprintf(stderr,"Different type of block : %d - %d\n", mdp1->heapinfo[i].type, mdp2->heapinfo[i].type);