Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : text segment is read and exec only
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 2 Dec 2012 21:07:32 +0000 (22:07 +0100)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 2 Dec 2012 21:15:49 +0000 (22:15 +0100)
src/mc/mc_checkpoint.c

index 321055f..d23fbf5 100644 (file)
@@ -112,7 +112,7 @@ void MC_init_memory_map_info(){
           }
         }
       }
           }
         }
       }
-    }else if ((reg.prot & PROT_READ)){
+    }else if ((reg.prot & PROT_READ) && (reg.prot & PROT_EXEC)){
       if (maps->regions[i].pathname != NULL){
         if (!memcmp(basename(maps->regions[i].pathname), "libsimgrid", 10)){
           start_text_libsimgrid = reg.start_addr;
       if (maps->regions[i].pathname != NULL){
         if (!memcmp(basename(maps->regions[i].pathname), "libsimgrid", 10)){
           start_text_libsimgrid = reg.start_addr;