From 4017fa399b0018a08bf6ae81fcb6900848034a6f Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 6 Jan 2012 02:01:06 +0000 Subject: 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 --- lldb/source/Core/Section.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Core/Section.cpp') 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; -- cgit v1.2.3