diff options
-rw-r--r-- | breakpad/linux/minidump-2-core.cc | 2 | ||||
-rw-r--r-- | breakpad/linux/minidump_writer.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/breakpad/linux/minidump-2-core.cc b/breakpad/linux/minidump-2-core.cc index 47b0209..db3e5cf 100644 --- a/breakpad/linux/minidump-2-core.cc +++ b/breakpad/linux/minidump-2-core.cc @@ -420,7 +420,7 @@ ParseModuleStream(CrashedProcess* crashinfo, MMappedRange range) { CrashedProcess::Mapping mapping; const MDRawModule* rawmodule = (MDRawModule*) range.GetArrayElement(sizeof(uint32_t), - sizeof(MDRawModule), i); + MD_MODULE_SIZE, i); mapping.start_address = rawmodule->base_of_image; mapping.end_address = rawmodule->size_of_image + rawmodule->base_of_image; diff --git a/breakpad/linux/minidump_writer.cc b/breakpad/linux/minidump_writer.cc index ac6a9aa..333e6b1 100644 --- a/breakpad/linux/minidump_writer.cc +++ b/breakpad/linux/minidump_writer.cc @@ -500,7 +500,7 @@ class MinidumpWriter { } TypedMDRVA<uint32_t> list(&minidump_writer_); - if (!list.AllocateObjectAndArray(num_output_mappings, sizeof(MDRawModule))) + if (!list.AllocateObjectAndArray(num_output_mappings, MD_MODULE_SIZE)) return false; dirent->stream_type = MD_MODULE_LIST_STREAM; @@ -513,7 +513,7 @@ class MinidumpWriter { continue; MDRawModule mod; - my_memset(&mod, 0, sizeof(mod)); + my_memset(&mod, 0, MD_MODULE_SIZE); mod.base_of_image = mapping.start_addr; mod.size_of_image = mapping.size; const size_t filepath_len = my_strlen(mapping.name); @@ -569,7 +569,7 @@ class MinidumpWriter { return false; mod.module_name_rva = ld.rva; - list.CopyIndexAfterObject(j++, &mod, sizeof(mod)); + list.CopyIndexAfterObject(j++, &mod, MD_MODULE_SIZE); } return true; |