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: Alessio Balsini <balsini@google.com>
This commit is contained in:
Alessio Balsini 2019-10-18 10:49:49 +01:00
parent 32e7325c44
commit d0de1114a9
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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;
}