Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : oops, about 3000 blocks unchecked in heap comparison algorithm ....
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Fri, 1 Jun 2012 15:49:11 +0000 (17:49 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Fri, 1 Jun 2012 15:49:11 +0000 (17:49 +0200)
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);