1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/tools/llvm-symbolizer
Georgii Rymar 58bb0e630a [llvm-symbolizer] - Fix the crash in GNU output style with --no-inlines and missing input file.
Fixes https://bugs.llvm.org/show_bug.cgi?id=48882.

If the input file does not exist (or has a reading error), the
following code will crash if there are two or more input addresses.

```
auto ResOrErr = Symbolizer.symbolizeInlinedCode(
  ModuleName, {Offset, object::SectionedAddress::UndefSection});
Printer << (error(ResOrErr) ? DILineInfo() : ResOrErr.get().getFrame(0));
```

For the first address, `symbolizeInlinedCode` returns an error.
For the second address, `symbolizeInlinedCode` returns an empty result
(not an error) and `.getFrame(0)` will crash.

Differential revision: https://reviews.llvm.org/D95609
2021-01-30 18:36:38 +03:00
..
Inputs
pdb [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
adjust-vma.s
basenames.s
basic.s
coff-dwarf.test
coff-exports.test
demangle.s
discriminator.test
dsym.test
dwo.test
fat.test
fission-ranges.test
flag-grouping.test
flush-output.s
frame-fortran.s
frame-loclist.s
frame-noname.s
frame-specification.s
frame-types.s
frame.s
functions.s
help.test
ignore-undefined-symbols.s
input-base.test Revert several changes related to llvm-symbolizer exiting non-zero on failure. 2020-10-21 15:21:44 -07:00
invalid-input-address.test
only-empty-ranges.s
options-from-env.test
output-style-column.test
output-style-empty-line.test
output-style-inlined.test [llvm-symbolizer] - Fix the crash in GNU output style with --no-inlines and missing input file. 2021-01-30 18:36:38 +03:00
padding-x86_64.ll
ppc64.test
print_context.c
relativenames.s
space-in-path.s
split-debug.test
split-dwarf-addr-object-relocation.test
split-dwarf-dwp.test
split-dwarf-multiple-cu.test
split-dwarf-zero-signature-not-found.s Fix crash after looking up dwo_id=0 in CU index. 2020-11-19 11:15:01 -08:00
split-dwarf.test
sym-verbose.test
sym.test Revert several changes related to llvm-symbolizer exiting non-zero on failure. 2020-10-21 15:21:44 -07:00
unknown-argument.test
untag-addresses.test
use-symbol-table.s
version.test
wasm-basic.s