================
@@ -142,7 +142,9 @@ size_t ObjectContainerUniversalMachO::GetNumArchitectures()
const {
bool ObjectContainerUniversalMachO::GetArchitectureAtIndex(
uint32_t idx, ArchSpec &arch) const {
- if (idx < m_header.nfat_arch) {
+ // guard against m_fat_archs.size() to keep this safe regardless of
+ // how the header was populated.
----------------
qiyao wrote:
I removed the comments in the new commit.
https://github.com/llvm/llvm-project/pull/205289
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits