Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] In compare_global_variables only compare values in the R/W segment
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 20 Jan 2014 12:06:07 +0000 (13:06 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 31 Jan 2014 11:00:27 +0000 (12:00 +0100)
commita914d4f8177b28e1217d3bbf417fb7f054a38356
tree2be640a6a33a3dffdcb8bd22b3c9857f4f1d5161
parent6b8bbdf81f292aba34513ff806e994e7a0eba01c
[mc] In compare_global_variables only compare values in the R/W segment

The algorithme is only relevant if the variable is in the R/W segment
otherwise the resulting pointer will be broken and might result in a
SIGSEV.

This happen if we try to compare a pointer on the .rodata (such as
__FUNCTION__).

Values are supposed to be constant and we do not expect to find
pointers to something which is not reachable by the global variables.
src/mc/mc_compare.c