From 5a2b8794fc64ac0bcb285e53c44b3d67529950fb Mon Sep 17 00:00:00 2001 From: Kalesh Singh Date: Wed, 6 Sep 2023 14:08:26 -0700 Subject: [PATCH] trusty: tipc_fuzzer: Remove use of PAGE_SIZE tipc_fuzzer writes random data of length 'size' and then attempts to read back data up to 'TIPC_MAX_MSG_SIZE' in length. Since 'size' is unrestricted we can always write more than the subsequent read; and in effect the fuzzer only checks that we can read something. Remove the read buffer's dependency on PAGE_SIZE. Bug: 294914413 Test: mma Change-Id: I909b49fda4e6ebf49f69b3c09ac29ff8629215ef Signed-off-by: Kalesh Singh --- trusty/fuzz/include/trusty/fuzz/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trusty/fuzz/include/trusty/fuzz/utils.h b/trusty/fuzz/include/trusty/fuzz/utils.h index c90641258..cf4962ee9 100644 --- a/trusty/fuzz/include/trusty/fuzz/utils.h +++ b/trusty/fuzz/include/trusty/fuzz/utils.h @@ -21,7 +21,7 @@ #include #include -#define TIPC_MAX_MSG_SIZE PAGE_SIZE +#define TIPC_MAX_MSG_SIZE 4096 namespace android { namespace trusty {