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

Commit d0de1114 authored by Alessio Balsini's avatar Alessio Balsini
Browse files

Fix fuzzer name and sizeof(array)



The fuzzer name "dm_table_fuzzer" was too generic. Looking forward to an
extension to host tests where each fuzzer name should be considered a
unique identifier, change the fuzzer name to, "dm_linear_table_fuzzer".

Fix also the syntax of sizeof(array) declaration.

Bug: none
Test: dm_linear_table_fuzzer
Change-Id: Iaa0ee9a0eb1352f0c5269b07198d0a34d8fb3254
Signed-off-by: default avatarAlessio Balsini <balsini@google.com>
parent 32e7325c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ cc_test {
}

cc_fuzz {
  name: "dm_table_fuzzer",
  name: "dm_linear_table_fuzzer",
  defaults: ["fs_mgr_defaults"],
  srcs: [
    "dm_linear_fuzzer.cpp",
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ void EXPECT_TRUE(const T& a) {
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
    uint64_t val[6];

    if (size != sizeof(*val)) {
    if (size != sizeof(val)) {
        return 0;
    }