brintos

brintos / llvm-project-archived public Read only

0
0
Text · 530 B · d611818 Raw
24 lines · python
1"""2Fuzz tests an object after the default construction to make sure it does not crash lldb.3"""4 5import lldb6 7 8def fuzz_obj(obj):9    obj.IsValid()10    obj.GetName()11    obj.FindSubSection("hello_section_name")12    obj.GetNumSubSections()13    obj.GetSubSectionAtIndex(600)14    obj.GetFileAddress()15    obj.GetByteSize()16    obj.GetFileOffset()17    obj.GetFileByteSize()18    obj.GetSectionData(1000, 100)19    obj.GetSectionType()20    obj.GetDescription(lldb.SBStream())21    for subsec in obj:22        s = str(subsec)23    len(obj)24