summaryrefslogtreecommitdiff
path: root/fuzz/mutator_aux.c
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2026-03-23 17:23:05 +0000
committerEd Maste <emaste@FreeBSD.org>2026-03-23 17:23:05 +0000
commitc06c65e0308fdfc14e455f5067a2f5dcfd9c1b77 (patch)
tree7fd518be430e221d8933994be6177bbb2ecd5adf /fuzz/mutator_aux.c
parente85dbcdab023dbfc335f9a0a5cb9c3dc3f830b94 (diff)
Vendor import of libfido2 1.15.0vendor/libfido2/1.15.0
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'fuzz/mutator_aux.c')
-rw-r--r--fuzz/mutator_aux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fuzz/mutator_aux.c b/fuzz/mutator_aux.c
index 64c633f15f92..ebddf1046ba1 100644
--- a/fuzz/mutator_aux.c
+++ b/fuzz/mutator_aux.c
@@ -135,12 +135,18 @@ void
mutate_byte(uint8_t *b)
{
LLVMFuzzerMutate(b, sizeof(*b), sizeof(*b));
+#ifdef WITH_MSAN
+ __msan_unpoison(b, sizeof(*b));
+#endif
}
void
mutate_int(int *i)
{
LLVMFuzzerMutate((uint8_t *)i, sizeof(*i), sizeof(*i));
+#ifdef WITH_MSAN
+ __msan_unpoison(i, sizeof(*i));
+#endif
}
void