1""" 2Fuzz tests an object after the default construction to make sure it does not crash lldb. 3""" 4 5import lldb 6 7 8def fuzz_obj(obj): 9 obj.GetSize() 10 obj.GetInstructionAtIndex(0xFFFFFFFF) 11 obj.AppendInstruction(lldb.SBInstruction()) 12 try: 13 obj.Print(None) 14 except Exception: 15 pass 16 obj.GetDescription(lldb.SBStream()) 17 obj.DumpEmulationForAllInstructions("armv7") 18 obj.Clear() 19 for inst in obj: 20 s = str(inst) 21