[Lldb-commits] [lldb] r189191 - Fix DWARF for 0-length CIE (data after the length should not be read if length is 0).
Virgile Bello
virgile.bello at gmail.com
Sun Aug 25 06:24:48 PDT 2013
Author: xen2
Date: Sun Aug 25 08:24:48 2013
New Revision: 189191
URL: http://llvm.org/viewvc/llvm-project?rev=189191&view=rev
Log:
Fix DWARF for 0-length CIE (data after the length should not be read if length is 0).
Modified:
lldb/trunk/source/Symbol/DWARFCallFrameInfo.cpp
Modified: lldb/trunk/source/Symbol/DWARFCallFrameInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/DWARFCallFrameInfo.cpp?rev=189191&r1=189190&r2=189191&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/DWARFCallFrameInfo.cpp (original)
+++ lldb/trunk/source/Symbol/DWARFCallFrameInfo.cpp Sun Aug 25 08:24:48 2013
@@ -341,7 +341,7 @@ DWARFCallFrameInfo::GetFDEIndex ()
dw_offset_t next_entry = current_entry + len + 4;
dw_offset_t cie_id = m_cfi_data.GetU32 (&offset);
- if (cie_id == 0 || cie_id == UINT32_MAX)
+ if (cie_id == 0 || cie_id == UINT32_MAX || len == 0)
{
m_cie_map[current_entry] = ParseCIE (current_entry);
offset = next_entry;
More information about the lldb-commits
mailing list