Fix broken fuzzer compilation
fuzz_group_decrypt.cpp got broken by 653790e; fix it up
This commit is contained in:
parent
05b48086a4
commit
64130c1f8b
2 changed files with 4 additions and 2 deletions
|
@ -45,7 +45,7 @@ Usage notes:
|
||||||
|
|
||||||
.. code::
|
.. 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
|
8. If it shows failures, pipe the failure case into
|
||||||
``./build/fuzzers/debug_<fuzzing_tool>``, fix, and repeat.
|
``./build/fuzzers/debug_<fuzzing_tool>``, fix, and repeat.
|
||||||
|
|
|
@ -54,6 +54,8 @@ int main(int argc, const char *argv[]) {
|
||||||
|
|
||||||
uint8_t plaintext[max_length];
|
uint8_t plaintext[max_length];
|
||||||
|
|
||||||
|
uint32_t ratchet_index;
|
||||||
|
|
||||||
size_t length = check_error(
|
size_t length = check_error(
|
||||||
olm_inbound_group_session_last_error,
|
olm_inbound_group_session_last_error,
|
||||||
session,
|
session,
|
||||||
|
@ -61,7 +63,7 @@ int main(int argc, const char *argv[]) {
|
||||||
olm_group_decrypt(
|
olm_group_decrypt(
|
||||||
session,
|
session,
|
||||||
message_buffer, message_length,
|
message_buffer, message_length,
|
||||||
plaintext, max_length
|
plaintext, max_length, &ratchet_index
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue