diff options
author | Greg Clayton <gclayton@apple.com> | 2012-01-06 02:01:06 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-01-06 02:01:06 +0000 |
commit | 4017fa399b0018a08bf6ae81fcb6900848034a6f (patch) | |
tree | fa20a55c9b42182c5a3ba150989e484958201173 /lldb/source/Core/Section.cpp | |
parent | 8e2fc5c5e997b21721b91d97e6b12ce40e5d5791 (diff) | |
download | bcm5719-llvm-4017fa399b0018a08bf6ae81fcb6900848034a6f.tar.gz bcm5719-llvm-4017fa399b0018a08bf6ae81fcb6900848034a6f.zip |
<rdar://problem/10652336>
Fixed a crasher when trying to load an expression prefix file:
% touch /tmp/carp.txt
% xcrun lldb
(lldb) settings set target.expr-prefix /tmp/carp.txt
Segmentation fault
llvm-svn: 147646
Diffstat (limited to 'lldb/source/Core/Section.cpp')
-rw-r--r-- | lldb/source/Core/Section.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Section.cpp b/lldb/source/Core/Section.cpp index b8b9ddf3d18..09394b266f3 100644 --- a/lldb/source/Core/Section.cpp +++ b/lldb/source/Core/Section.cpp @@ -339,7 +339,7 @@ Section::ReadSectionDataFromObjectFile (const ObjectFile* objfile, off_t section if (section_offset < file_size) { off_t section_file_offset = objfile->GetOffset() + GetFileOffset() + section_offset; - bytes_read = file.ReadFileContents (section_file_offset, dst, dst_len); + bytes_read = file.ReadFileContents (section_file_offset, dst, dst_len, NULL); if (bytes_read >= dst_len) return bytes_read; bytes_left -= bytes_read; |