Don't merge the mappings if their exec bit are different.

BUG=585534
R=primiano@chromium.org

Review URL: https://codereview.chromium.org/1750033002 .
This commit is contained in:
Primiano Tucci 2016-03-08 08:46:00 +00:00
parent 4d69050717
commit 8915f7be39

View File

@ -351,7 +351,8 @@ bool LinuxDumper::EnumerateMappings() {
MappingInfo* module = mappings_.back();
if ((start_addr == module->start_addr + module->size) &&
(my_strlen(name) == my_strlen(module->name)) &&
(my_strncmp(name, module->name, my_strlen(name)) == 0)) {
(my_strncmp(name, module->name, my_strlen(name)) == 0) &&
(exec == module->exec)) {
module->size = end_addr - module->start_addr;
line_reader->PopLine(line_len);
continue;