diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2021-04-10 08:22:05 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-17 01:08:19 +0000 |
commit | 6bb2d508988e9725e41915d430e1feb21fe68534 (patch) | |
tree | 0aab84e31b96838b017bdb238c2cfde57ac72c61 /fuzz/pchg_fuzz.corpus | |
parent | 2252a56cd80adb017614c35fe1a27716cc0046f8 (diff) | |
download | chrome-ec-6bb2d508988e9725e41915d430e1feb21fe68534.tar.gz |
PCHG: Fuzz PCHG and ctn730 driver
This patch adds a fuzz test for PCHG and ctn730 driver.
With the given corpus, the test currently reaches all the normal mode
states.
BUG=b:190841496
BRANCH=trogdor
TEST=make run-pchg_fuzz
TEST=pchg_fuzz.exe -seed=1 -runs=1000000 -dict=fuzz/pchg_fuzz.corpus
Change-Id: I6eedbbbdbf3396dfa2b98ca302e16d142ea251d5
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2956076
Diffstat (limited to 'fuzz/pchg_fuzz.corpus')
-rw-r--r-- | fuzz/pchg_fuzz.corpus | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fuzz/pchg_fuzz.corpus b/fuzz/pchg_fuzz.corpus new file mode 100644 index 0000000000..0b069baf4f --- /dev/null +++ b/fuzz/pchg_fuzz.corpus @@ -0,0 +1,26 @@ +"\xae\x01" +"\x18\x01\x00\x00" +"\xff~" +"\x01u" +"\x80\x00\x00\x00" +"Q\x00" +"5\x00" +"\xb7\x01\x00\x00" +"\x01\x00\x00\x00\x01\x00\x00\x00" +"\x00\x00\x00\x00\x00\x00\x00\x00" +"\xff\xff\xff\x00n_\x0b\xc0" +"\x92\x00" +"\xff\xdc" +"\xa6\x01" +"\x85f\xfc$\x00\x00\x00\x00" +"\xff\xff\xff\xff\xff\xff\xff\xff" +"\xff\xff\xff\xff\x00\x00\x00\x00" +"\xfff" +"\x01\xcb" +"\x8f\x00\x00\x00" +"\xff\xff\xff\x0d" +"=\x00\x00\x00" +"\xbc\x00" +"\x02\x91" +"\xff\xff\xff\x00\x00\x00\x00\x00" +"\x00y" |