This revision was automatically updated to reflect the committed changes. Closed by commit rL359471: Fix a stack-smasher in PlatformMacOSX::GetSDKDirectory() (authored by adrian, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits.
Changed prior to commit: https://reviews.llvm.org/D61218?vs=196931&id=197138#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D61218/new/ https://reviews.llvm.org/D61218 Files: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp Index: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp =================================================================== --- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp +++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp @@ -164,7 +164,7 @@ std::string default_xcode_sdk; FileSpec fspec; uint32_t versions[2]; - if (objfile->GetSDKVersion(versions, sizeof(versions))) { + if (objfile->GetSDKVersion(versions, 2)) { fspec = HostInfo::GetShlibDir(); if (fspec) { std::string path;
Index: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp =================================================================== --- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp +++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp @@ -164,7 +164,7 @@ std::string default_xcode_sdk; FileSpec fspec; uint32_t versions[2]; - if (objfile->GetSDKVersion(versions, sizeof(versions))) { + if (objfile->GetSDKVersion(versions, 2)) { fspec = HostInfo::GetShlibDir(); if (fspec) { std::string path;
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits