aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-08-02 23:43:12 -0400
committerJack Lloyd <[email protected]>2015-08-02 23:43:12 -0400
commit392ce7db1eccf5e2eacb074195ea7f5016f70259 (patch)
tree49aa67753d35e5ae56feac3b67cc55b7274a53da /src/tests/tests.h
parent8e19ecf11c2c50b5a2d6642477d729091409fec8 (diff)
Fix two crashes in the BER decoder found with afl.
One a read at 0 of an empty vector, the other causing allocation of an arbitrary amount of memory.
Diffstat (limited to 'src/tests/tests.h')
-rw-r--r--src/tests/tests.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/tests.h b/src/tests/tests.h
index c99adf6b8..88102f289 100644
--- a/src/tests/tests.h
+++ b/src/tests/tests.h
@@ -107,6 +107,8 @@ size_t test_nist_x509();
size_t test_srp6();
size_t test_compression();
+size_t test_fuzzer();
+
#define SKIP_TEST(testname) \
size_t test_ ## testname() { \
std::cout << "Skipping tests: " << # testname << std::endl; \