From 931073377aec8231f5e2d22083a8b24d7959de75 Mon Sep 17 00:00:00 2001 From: djm Date: Fri, 2 May 2014 02:53:37 +0000 Subject: [PATCH] make the fuzzer seed const to make it clear that it is never modified --- regress/usr.bin/ssh/unittests/test_helper/fuzz.c | 2 +- regress/usr.bin/ssh/unittests/test_helper/test_helper.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/usr.bin/ssh/unittests/test_helper/fuzz.c b/regress/usr.bin/ssh/unittests/test_helper/fuzz.c index 4f14217d559..581ca5b29c1 100644 --- a/regress/usr.bin/ssh/unittests/test_helper/fuzz.c +++ b/regress/usr.bin/ssh/unittests/test_helper/fuzz.c @@ -168,7 +168,7 @@ fuzz_dump(struct fuzz *fuzz) } struct fuzz * -fuzz_begin(u_int strategies, void *p, size_t l) +fuzz_begin(u_int strategies, const void *p, size_t l) { struct fuzz *ret = calloc(sizeof(*ret), 1); diff --git a/regress/usr.bin/ssh/unittests/test_helper/test_helper.h b/regress/usr.bin/ssh/unittests/test_helper/test_helper.h index d93ab73ebf1..3a08d1a5ff2 100644 --- a/regress/usr.bin/ssh/unittests/test_helper/test_helper.h +++ b/regress/usr.bin/ssh/unittests/test_helper/test_helper.h @@ -268,7 +268,7 @@ struct fuzz; #define FUZZ_MAX FUZZ_BASE64 /* Start fuzzing a blob of data with selected strategies (bitmask) */ -struct fuzz *fuzz_begin(u_int strategies, void *p, size_t l); +struct fuzz *fuzz_begin(u_int strategies, const void *p, size_t l); /* Free a fuzz context */ void fuzz_cleanup(struct fuzz *fuzz); -- 2.20.1