diff options
Diffstat (limited to 'lldb/test/python_api/default-constructor/sb_section.py')
-rw-r--r-- | lldb/test/python_api/default-constructor/sb_section.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_section.py b/lldb/test/python_api/default-constructor/sb_section.py new file mode 100644 index 00000000000..df33338ac9d --- /dev/null +++ b/lldb/test/python_api/default-constructor/sb_section.py @@ -0,0 +1,20 @@ +""" +Fuzz tests an object after the default construction to make sure it does not crash lldb. +""" + +import sys +import lldb + +def fuzz_obj(obj): + obj.IsValid() + obj.GetName() + obj.FindSubSection("hello_section_name") + obj.GetNumSubSections() + obj.GetSubSectionAtIndex(600) + obj.GetFileAddress() + obj.GetByteSize() + obj.GetFileOffset() + obj.GetFileByteSize() + obj.GetSectionData(1000, 100) + obj.GetSectionType() + obj.GetDescription(lldb.SBStream()) |