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

Commit 7134ae06 authored by Yifan Hong's avatar Yifan Hong
Browse files

libsnapshot_fuzzer: Add ZERO to operation types

Even though operation type ZERO is not used
in libsnapshot, add it so that the fuzzer has
an alternative operation type to use. Without
it, the fuzzer will only generate operations
SOURCE_COPY.

Test: pass
Bug: 154633114
Change-Id: I4fd36421b8b33ed68b94be2d739a6dd706b3829f
parent 1af4a81f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -45,7 +45,12 @@ message PartitionInfo {
}

message InstallOperation {
    enum Type { SOURCE_COPY = 4; }
    enum Type {
        SOURCE_COPY = 4;
        // Not used by libsnapshot. Declared here so that the fuzzer has an
        // alternative value to use for |type|.
        ZERO = 6;
    }
    required Type type = 1;
    repeated Extent src_extents = 4;
    repeated Extent dst_extents = 6;