Add fuzz calls to SBType, SBValue, and SBValueList.
Fixed crashes for SBValue fuzz calls. And change 'bool SBType::IsPointerType(void)' to 'bool SBType::IsAPointerType(void)' to avoid name collision with the static 'bool SBType::IsPointerType(void *)' function, which SWIG cannot handle. llvm-svn: 134096
This commit is contained in:
@@ -297,6 +297,9 @@ class APIDefaultConstructorTestCase(TestBase):
|
||||
if self.TraceOn():
|
||||
print obj
|
||||
self.assertFalse(obj)
|
||||
# Do fuzz testing on the invalid obj, it should not crash lldb.
|
||||
import sb_type
|
||||
sb_type.fuzz_obj(obj)
|
||||
|
||||
@python_api_test
|
||||
def test_SBValue(self):
|
||||
@@ -304,6 +307,9 @@ class APIDefaultConstructorTestCase(TestBase):
|
||||
if self.TraceOn():
|
||||
print obj
|
||||
self.assertFalse(obj)
|
||||
# Do fuzz testing on the invalid obj, it should not crash lldb.
|
||||
import sb_value
|
||||
sb_value.fuzz_obj(obj)
|
||||
|
||||
@python_api_test
|
||||
def test_SBValueList(self):
|
||||
@@ -311,6 +317,9 @@ class APIDefaultConstructorTestCase(TestBase):
|
||||
if self.TraceOn():
|
||||
print obj
|
||||
self.assertFalse(obj)
|
||||
# Do fuzz testing on the invalid obj, it should not crash lldb.
|
||||
import sb_valuelist
|
||||
sb_valuelist.fuzz_obj(obj)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user