diff options
author | Stella Stamenova <stilis@microsoft.com> | 2018-12-10 17:23:28 +0000 |
---|---|---|
committer | Stella Stamenova <stilis@microsoft.com> | 2018-12-10 17:23:28 +0000 |
commit | b3f44ad9c2983428b0b9072ba79f02a3fc59f6a1 (patch) | |
tree | 6845b2a664e82d83cb11cd4e30fd2b4c100f774e /lldb/source/Plugins/ObjectFile | |
parent | 53f0d41dc4879cf79bea8acc4aa87064a085d05c (diff) | |
download | bcm5719-llvm-b3f44ad9c2983428b0b9072ba79f02a3fc59f6a1.tar.gz bcm5719-llvm-b3f44ad9c2983428b0b9072ba79f02a3fc59f6a1.zip |
Do not use PATH_MAX with SmallString
Summary: Instead use a more reasonable value to start and rely on the fact that SmallString will resize if necessary.
Reviewers: labath, asmith
Reviewed By: labath
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D55457
llvm-svn: 348775
Diffstat (limited to 'lldb/source/Plugins/ObjectFile')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp index 302fb02dfd0..12d9a673e03 100644 --- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp +++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp @@ -889,7 +889,7 @@ uint32_t ObjectFilePECOFF::ParseDependentModules() { // At this moment we only have the base name of the DLL. The full path can // only be seen after the dynamic loading. Our best guess is Try to get it // with the help of the object file's directory. - llvm::SmallString<PATH_MAX> dll_fullpath; + llvm::SmallString<128> dll_fullpath; FileSpec dll_specs(dll_name); dll_specs.GetDirectory().SetString(m_file.GetDirectory().GetCString()); |