Improvements. Now hooking fewer functions, and instead making on big array symbolic. This will make it easier to run the inputs concretely (by eventually filling in the array with the concrete bytes), and will also make possible fuzzer integration (where the fuzzer mutates the bytes of the array) possible.
This commit is contained in:
@@ -22,7 +22,7 @@ McTest_EntryPoint(YIsAlwaysPositive) {
|
||||
McTest_Assert(y >= 0);
|
||||
}
|
||||
|
||||
McTest_EntryPoint(YIsAlwaysPositive_WillFail) {
|
||||
McTest_EntryPoint(YIsAlwaysPositive_CanFail) {
|
||||
int x = McTest_IntInRange(-10, 10);
|
||||
int y = x * x * x;
|
||||
McTest_Assert(y >= 0); /* This will fail */
|
||||
|
||||
Reference in New Issue
Block a user