breakpad/src/common
Ian Barkley-Yeung 1eafed6806 Fix more memory leaks with proper smart pointer usage
Fix more memory leaks, specifically for Module::Extern and
Module::StackFrameEntry that were outside the Module's AddressRange.

To fix this, and to prevent issues like the one fixed by
79326ebe94
in the future, switched to proper use of std::unique_ptr for Module's
Extern and StackFrameEntry functions. These should enforce ownership
correctly and make the ownership flow much more visible and clear.

Change-Id: I7c943dff3501836a5e303febedc1b312e6f0a1fe
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4129821
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
2023-01-10 18:46:49 +00:00
..
android Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf Cleanup strncmp and use string_view in elf_reader.cc. 2022-12-15 13:57:12 +00:00
linux Fix more memory leaks with proper smart pointer usage 2023-01-10 18:46:49 +00:00
mac Mac dump_syms: delete unused WriteSymbolFile 2022-12-14 19:37:46 +00:00
solaris Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
testdata Breakpad Linux dumper: Make StabsReader independent of endianness and word size. 2010-05-05 17:09:20 +00:00
tests Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
windows gyp: drop unused build system 2022-12-05 01:38:54 +00:00
basictypes.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
byte_cursor.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
byte_cursor_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
convert_UTF.cc Remove true/false defines in convert_UTF.cc 2020-03-19 03:19:55 +00:00
convert_UTF.h convert_UTF: rewrite in C++ 2019-09-04 20:25:23 +00:00
dwarf_cfi_to_module.cc Fix more memory leaks with proper smart pointer usage 2023-01-10 18:46:49 +00:00
dwarf_cfi_to_module.h Fix more memory leaks with proper smart pointer usage 2023-01-10 18:46:49 +00:00
dwarf_cfi_to_module_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_cu_to_module.cc Add support for compressed section headers to dump_syms. 2022-10-26 20:29:20 +00:00
dwarf_cu_to_module.h Add support for compressed section headers to dump_syms. 2022-10-26 20:29:20 +00:00
dwarf_cu_to_module_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_line_to_module.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_line_to_module.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_line_to_module_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_range_list_handler.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_range_list_handler.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
language.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
language.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
long_string_dictionary.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
long_string_dictionary.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
long_string_dictionary_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
macros.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
md5.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
md5.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
memory_allocator.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
memory_allocator_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
memory_range.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
memory_range_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
minidump_type_helper.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
module.cc Fix more memory leaks with proper smart pointer usage 2023-01-10 18:46:49 +00:00
module.h Fix more memory leaks with proper smart pointer usage 2023-01-10 18:46:49 +00:00
module_unittest.cc Fix more memory leaks with proper smart pointer usage 2023-01-10 18:46:49 +00:00
path_helper.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
path_helper.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
safe_math.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
safe_math_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
scoped_ptr.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
simple_string_dictionary.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
simple_string_dictionary.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
simple_string_dictionary_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stabs_reader.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stabs_reader.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stabs_reader_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stabs_to_module.cc Fix more memory leaks with proper smart pointer usage 2023-01-10 18:46:49 +00:00
stabs_to_module.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stabs_to_module_unittest.cc Changes FunctionNames.Mangled to check for regex instead of equality 2022-10-12 19:22:15 +00:00
stdio_wrapper.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
string_conversion.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
string_conversion.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
string_conversion_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
string_view.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
symbol_data.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
test_assembler.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
test_assembler.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
test_assembler_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
unordered.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
using_std_string.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00