Fix a bug in the parsing of the LC_BUILD_VERSION Mach-O load command.
authorAdrian Prantl <aprantl@apple.com>
Tue, 13 Nov 2018 23:14:37 +0000 (23:14 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 13 Nov 2018 23:14:37 +0000 (23:14 +0000)
commit874e32dcf2cc8c4eca7adf8da5bc23416564e02a
tree79116b1dd476279ae050edfa1f1dff70d394c5b8
parent02f8e7c3558685e87a4c440ccfaedb8c35a5297d
Fix a bug in the parsing of the LC_BUILD_VERSION Mach-O load command.

LC_BUILD_VERSION records are of variable length. The original code
would use uninitialized memory when the size of a record was exactly 24.

rdar://problem/46032185

llvm-svn: 346812
lldb/lit/Modules/lc_build_version.yaml
lldb/lit/Modules/lc_build_version_notools.yaml [new file with mode: 0644]
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp