Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28faf33c authored by Harsh Abichandani's avatar Harsh Abichandani Committed by Kunal Rai
Browse files

Refactored camera_c2SubmitInfo_fuzzer

The following are updates to the fuzzer:
1. Randomized parameter values.

exec/s: 1069
Test: ./camera_c2SubmitInfo_fuzzer
Bug: 309571245

Change-Id: I2c6185333a2f73c22b480bcd98bb7e8c747353f3
parent ec4de2c2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -27,6 +27,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
    SubmitInfo submitInfo;
    submitInfo.mRequestId = fdp.ConsumeIntegral<int32_t>();
    submitInfo.mLastFrameNumber = fdp.ConsumeIntegral<int64_t>();
    if (fdp.ConsumeBool()) {
        invokeReadWriteParcel<SubmitInfo>(&submitInfo);
    } else {
        invokeNewReadWriteParcel<SubmitInfo>(&submitInfo, fdp);
    }
    return 0;
}