diff options
author | Steven Moreland <smoreland@google.com> | 2022-01-26 01:38:32 +0000 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2022-01-26 01:38:32 +0000 |
commit | d4f6ab5e6a659f43c1ab94883ea5b24c0b512505 (patch) | |
tree | 38374d5287aee1e6a7444ba26e346c9113dd08bc | |
parent | 2aab4a792be4311a91d389316c857f2b8f576dc8 (diff) | |
download | native-d4f6ab5e6a659f43c1ab94883ea5b24c0b512505.tar.gz |
rpc_binder_fuzzer: case with transaction
We still weren't getting coverage here, so manual corpus.
Here is the layout of a special transaction to get the root object, and
a transaction on the root object, respectively:
/ .... init ... \/ conn init \/ RpcWireHeader \/ RpcTransactionBody \/ ctrl \
000000F0000000000000000000000000636369000000000000000000280000001111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000008d4a8d4a
000000F0000000000000000000000000636369000000000000000000280000001111111111111111030000000000000000000000000000000000000000000000000000000000000000000000000000008d4a8d4a
The test case which is added is done by joining these two transactions
(the root object must be retrieved before we can transact on it).
echo "000000F00000000000000000000000006363690000000000000000002800000011111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280000001111111111111111030000000000000000000000000000000000000000000000000000000000000000000000000000008d4a8d4a" | xxd -ps -r
Hopefully this will be enough for the fuzzer to find the transaction
operations we have setup there.
Bug: 199324691
Test: rpc_binder_fuzzer tests/rpc_fuzzer/corpus/transact_on_binder (w/ log showing coverage)
Change-Id: I4b9b62525ec27994db261d7ee354049a21168602
-rw-r--r-- | libs/binder/tests/rpc_fuzzer/corpus/transact_on_binder | bin | 0 -> 140 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/libs/binder/tests/rpc_fuzzer/corpus/transact_on_binder b/libs/binder/tests/rpc_fuzzer/corpus/transact_on_binder Binary files differnew file mode 100644 index 0000000000..ae081e659f --- /dev/null +++ b/libs/binder/tests/rpc_fuzzer/corpus/transact_on_binder |