Merge "libfstab_fuzzer: Add dictionary to guide the fuzzer"

This commit is contained in:
Yi-Yo Chiang 2021-10-26 20:34:47 +00:00 committed by Gerrit Code Review
commit a68b83fd60
2 changed files with 77 additions and 0 deletions

View file

@ -25,4 +25,11 @@ cc_fuzz {
shared_libs: [
"libbase",
],
dictionary: "fstab.dict",
fuzz_config: {
cc: [
"yochiang@google.com",
],
},
}

70
fs_mgr/fuzz/fstab.dict Normal file
View file

@ -0,0 +1,70 @@
"#"
"="
","
"f2fs"
# mount flags
"noatime"
"noexec"
"nosuid"
"nodev"
"nodiratime"
"ro"
"rw"
"sync"
"remount"
"bind"
"rec"
"unbindable"
"private"
"slave"
"shared"
"defaults"
# fs_mgr flags
"wait"
"check"
"nonremovable"
"recoveryonly"
"noemulatedsd"
"notrim"
"verify"
"formattable"
"slotselect"
"latemount"
"nofail"
"verifyatboot"
"quota"
"avb"
"logical"
"checkpoint=block"
"checkpoint=fs"
"first_stage_mount"
"slotselect_other"
"fsverity"
"metadata_csum"
"fscompress"
"overlayfs_remove_missing_lowerdir"
# fs_mgr flags that expect an argument
"reserve_root="
"lowerdir="
"encryptable="
"voldmanaged="
"length="
"swapprio="
"zramsize="
"forceencrypt="
"fileencryption="
"forcefdeorfbe="
"max_comp_streams="
"reservedsize="
"readahead_size_kb="
"eraseblk="
"logicalblk="
"avb_keys="
"avb="
"keydirectory="
"metadata_encryption="
"sysfs_path="
"zram_backingdev_size="