aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-10-24 16:31:42 +0100
committerRichard van der Hoff <richard@matrix.org>2016-10-24 16:32:21 +0100
commit64130c1f8b0a2dd09379ac02544897ad5a2bfb75 (patch)
treeac804fe0eb8a4359c4e094c3ce89e26041d426c9
parent05b48086a4918b2cb4b23ffbabef564555131186 (diff)
Fix broken fuzzer compilation
fuzz_group_decrypt.cpp got broken by 653790e; fix it up
-rw-r--r--fuzzers/README.rst2
-rw-r--r--fuzzers/fuzz_group_decrypt.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/fuzzers/README.rst b/fuzzers/README.rst
index b3142ca..d052303 100644
--- a/fuzzers/README.rst
+++ b/fuzzers/README.rst
@@ -45,7 +45,7 @@ Usage notes:
.. code::
- ./afl-fuzz -i- -o existing_output_dir [...etc...]
+ afl-fuzz -i- -o existing_output_dir [...etc...]
8. If it shows failures, pipe the failure case into
``./build/fuzzers/debug_<fuzzing_tool>``, fix, and repeat.
diff --git a/fuzzers/fuzz_group_decrypt.cpp b/fuzzers/fuzz_group_decrypt.cpp
index 1fc99d7..bb12d0e 100644
--- a/fuzzers/fuzz_group_decrypt.cpp
+++ b/fuzzers/fuzz_group_decrypt.cpp
@@ -54,6 +54,8 @@ int main(int argc, const char *argv[]) {
uint8_t plaintext[max_length];
+ uint32_t ratchet_index;
+
size_t length = check_error(
olm_inbound_group_session_last_error,
session,
@@ -61,7 +63,7 @@ int main(int argc, const char *argv[]) {
olm_group_decrypt(
session,
message_buffer, message_length,
- plaintext, max_length
+ plaintext, max_length, &ratchet_index
)
);