Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix lookup of malloc fragment type
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 7 Jul 2014 08:41:29 +0000 (10:41 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Mon, 7 Jul 2014 14:26:25 +0000 (16:26 +0200)
commit6f07730cd8f92bc3086abf143076947a71adb330
treeaad5750ce1938a54f4729e2582d070fba8193588
parentfe676bdf59f9b7bc9ab2868caf5ca56789367419
[mc] Fix lookup of malloc fragment type

In some cases, the type was looked up in the current heapinfo and not
in the snapshot one:

 * in some cases this is not an issue as state->heapinfo2 is currently
   the same as the current heapinfo but this solution is more robust;

 * if we were supposed to look it from state->heapinfo1 this is wrong.
src/mc/mc_diff.c