Avoid potential negative array index access to cached text.
[LibreOffice.git] / external / breakpad / breakpad-dump_syms.patch.1
blobd895be7ef57a609d589624c038998fa15cf46914
1 diff -ur breakpad.org/src/common/windows/pdb_source_line_writer.cc breakpad/src/common/windows/pdb_source_line_writer.cc
2 --- breakpad.org/src/common/windows/pdb_source_line_writer.cc   2021-06-11 12:37:22.682324700 +0200
3 +++ breakpad/src/common/windows/pdb_source_line_writer.cc       2021-06-11 12:44:24.480184800 +0200
4 @@ -34,7 +34,7 @@
5  #include <atlbase.h>
6  #include <dia2.h>
7  #include <diacreate.h>
8 -#include <ImageHlp.h>
9 +#include <dbghelp.h>
10  #include <stdio.h>
12  #include <algorithm>
13 diff -ur breakpad.org/src/common/windows/pe_util.cc breakpad/src/common/windows/pe_util.cc
14 --- breakpad.org/src/common/windows/pe_util.cc  2021-06-11 12:37:22.682324700 +0200
15 +++ breakpad/src/common/windows/pe_util.cc      2021-06-11 12:52:34.542708600 +0200
16 @@ -35,6 +35,7 @@
17  #include <ImageHlp.h>\r
18  \r
19  #include <functional>\r
20 +#include <memory>\r
21  \r
22  #include "common/windows/string_utils-inl.h"\r
23  #include "common/windows/guid_string.h"\r
24 diff -ur breakpad.org/src/tools/windows/dump_syms/dump_syms.cc breakpad/src/tools/windows/dump_syms/dump_syms.cc
25 --- breakpad.org/src/tools/windows/dump_syms/dump_syms.cc       2021-06-11 12:37:20.697959400 +0200
26 +++ breakpad/src/tools/windows/dump_syms/dump_syms.cc   2021-06-11 12:41:16.922559700 +0200
27 @@ -33,6 +33,7 @@
28  #include <stdio.h>
29  #include <wchar.h>
31 +#include <memory>
32  #include <string>
34  #include "common/windows/pdb_source_line_writer.h"