llvm-project/llvm/test/tools
Kevin Enderby 44550600f2 Fix a crash in llvm-nm for a bad Mach-O file that has an N_SECT type symbol and a zero n_sect value.
The code in llvm-nm for Mach-O files to determine the section type for an
N_SECT type symbol it will call getSymbolSection() and check for the error,
but in the case the n_sect value is zero it will return section_end() (aka nullptr).
And the code was using that and crashing instead of just returning a ’s’ for a
section or printing (?,?) as it would if getSymbolSection() returned an error.

rdar://33136604

llvm-svn: 313193
2017-09-13 21:01:49 +00:00
..
dsymutil llvm-dwarfdump: Make -brief the default and add a -verbose option instead. 2017-09-11 23:05:20 +00:00
gold [gold] Fix up a new test to allow it to pass on non x86 builds. 2017-08-25 16:14:56 +00:00
llvm-ar Don't call exit from cl::PrintHelpMessage. 2017-09-07 23:30:48 +00:00
llvm-config [llvm-config] Fix cflags test looking for "warning" 2017-05-30 20:21:47 +00:00
llvm-cov [llvm-cov] Try to fix a test on Windows 2017-09-11 23:32:30 +00:00
llvm-cvtres Fix bug in symbol generation for resource COFF 2017-06-30 18:16:35 +00:00
llvm-cxxdump Fix a bug in the code of llvm-cxxdump in dumpArchive() when 2016-10-21 20:03:14 +00:00
llvm-cxxfilt c++filt: support COFF import thunks 2017-03-22 21:15:19 +00:00
llvm-dwarfdump llvm-dwarfdump: support dumping UUIDs of Mach-O binaries. 2017-09-13 18:22:59 +00:00
llvm-dwp llvm-dwarfdump: Make -brief the default and add a -verbose option instead. 2017-09-11 23:05:20 +00:00
llvm-extract [llvm-extract] Add option for recursive extraction 2017-04-06 20:51:40 +00:00
llvm-isel-fuzzer llvm-isel-fuzzer: Add some basic tests 2017-09-03 00:37:39 +00:00
llvm-lit
llvm-lto Object: Remove ModuleSummaryIndexObjectFile class. 2017-05-01 20:42:32 +00:00
llvm-lto2 Fix the bug that parseAAPipeline is not invoked in runNewPMPasses in release compiler. 2017-08-02 03:03:19 +00:00
llvm-mc
llvm-modextract llvm-modextract: Call keep() on the output stream before exiting. 2016-12-01 23:13:11 +00:00
llvm-mt llvm-mt: Merge manifest namespaces. 2017-08-19 00:37:41 +00:00
llvm-nm Fix a crash in llvm-nm for a bad Mach-O file that has an N_SECT type symbol and a zero n_sect value. 2017-09-13 21:01:49 +00:00
llvm-objcopy [llvm-objcopy] Add e_machine validity check for reserved section indexes 2017-09-13 03:04:50 +00:00
llvm-objdump [WebAssembly] Only treat imports/exports as symbols when reading relocatable object files 2017-09-06 22:05:41 +00:00
llvm-opt-report [llvm-opt-report] Fix context-sensitive lines where nothing happened 2017-01-07 20:21:17 +00:00
llvm-pdbdump [PDB] Add a test that verifies every known type record. 2017-07-05 18:43:25 +00:00
llvm-profdata Fix the bug when SampleProfileWriter writes out number of callsites. 2017-08-03 00:09:18 +00:00
llvm-rc [llvm-rc] Add DIALOG(EX) parsing ability (parser, pt 5/8). 2017-08-29 16:49:59 +00:00
llvm-readobj [WebAssembly] Only treat imports/exports as symbols when reading relocatable object files 2017-09-06 22:05:41 +00:00
llvm-size Fix a bug with llvm-size and the -m option with multiple files not printing the file names. 2016-12-01 19:12:55 +00:00
llvm-split
llvm-strings [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
llvm-symbolizer Get rid of even more "%T" expansions, see <https://reviews.llvm.org/D35396>. 2017-08-20 17:05:22 +00:00
llvm-xray/X86 Fix llvm-xray tests to avoid subshells 2017-09-07 21:28:09 +00:00
lto Fix test/tools/lto/hide-linkonce-odr.ll after r289719 2016-12-15 01:31:38 +00:00
obj2yaml obj2yaml: Improve error reporting 2017-06-16 23:29:54 +00:00
sancov [sancov] better input parameters validation 2017-03-03 18:22:20 +00:00
sanstats [sanstats] Remove a flaky test. 2017-07-13 01:36:12 +00:00
yaml2obj [yaml2obj][ELF] Add support for symbol indexes greater than SHN_LORESERVE 2017-09-07 20:44:16 +00:00