We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2adfdfd commit 365add0Copy full SHA for 365add0
tests/fuzz/fuzz-hsm_encryption.c
@@ -3,10 +3,19 @@
3
4
#include <ccan/mem/mem.h>
5
#include <common/hsm_encryption.h>
6
+#include <common/setup.h>
7
+#include <stdlib.h>
8
#include <tests/fuzz/libfuzz.h>
9
10
void init(int *argc, char ***argv)
11
{
12
+ /* Don't run as a unit test under valgrind: too slow! */
13
+#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14
+ if (getenv("VALGRIND") && strcmp(getenv("VALGRIND"), "1") == 0) {
15
+ common_shutdown();
16
+ exit(0);
17
+ }
18
+#endif
19
}
20
21
void run(const uint8_t *data, size_t size)
0 commit comments