blob: 46a6a87334f05025b27bb76f8a155fc8c5056441 [file] [log] [blame]
"""
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import lldb
def fuzz_obj(obj):
obj.GetFileSpec()
obj.GetNumLineEntries()
obj.GetLineEntryAtIndex(0xFFFFFFFF)
obj.FindLineEntryIndex(0, 0xFFFFFFFF, None)
obj.GetDescription(lldb.SBStream())
len(obj)
for line_entry in obj:
s = str(line_entry)