brintos

brintos / llvm-project-archived public Read only

0
0
Text · 377 B · 46a6a87 Raw
17 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.GetFileSpec()10    obj.GetNumLineEntries()11    obj.GetLineEntryAtIndex(0xFFFFFFFF)12    obj.FindLineEntryIndex(0, 0xFFFFFFFF, None)13    obj.GetDescription(lldb.SBStream())14    len(obj)15    for line_entry in obj:16        s = str(line_entry)17