tor/src/test/fuzz
Nick Mathewson 5240afa713 Fix a memory leak on decryption non-failure of v3 hsdesc
If it decrypts something that turns out to start with a NUL byte,
then decrypt_desc_layer() will return 0 to indicate the length of
its result.  But 0 also indicates an error, which causes the result
not to be freed by decrypt_desc_layer()'s callers.

Since we're trying to stabilize 0.3.2.x, I've opted for the simpler
possible fix here and made it so that an empty decrypted string will
also count as an error.

Fixes bug 24150 and OSS-Fuzz issue 3994.

The original bug was present but unreachable in 0.3.1.1-alpha. I'm
calling this a bugfix on 0.3.2.1-alpha since that's the first version
where you could actually try to decrypt these descriptors.
2017-11-06 12:59:11 -05:00
..
dict Fuzz outer layer of hsv3 descriptor 2017-08-13 17:50:51 +07:00
fixup_filenames.sh Tools for working with directories of fuzzed stuff. 2017-01-30 08:37:24 -05:00
fuzz_consensus.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
fuzz_descriptor.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
fuzz_diff.c bug#22143/prop#140: identify input diffs by their digest-as-signed 2017-05-03 13:09:08 -04:00
fuzz_diff_apply.c Add fuzzers for consensus diff backend code 2017-03-16 14:42:55 -04:00
fuzz_extrainfo.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
fuzz_hsdescv2.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
fuzz_hsdescv3.c Fix a memory leak on decryption non-failure of v3 hsdesc 2017-11-06 12:59:11 -05:00
fuzz_http.c Clean up mentions of 'zlib' and rename the mentions to 'compressed'. 2017-04-27 15:51:14 +02:00
fuzz_http_connect.c Resolve inconsistencies between buf refactor and HTTP connect 2017-09-05 14:41:35 -04:00
fuzz_iptsv2.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
fuzz_microdesc.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
fuzz_multi.sh Try to tweak fuzzing.md to correspond to my changes 2017-01-30 08:37:24 -05:00
fuzz_vrs.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
fuzzing.h Run the copyright update script. 2017-03-15 16:13:17 -04:00
fuzzing_common.c Initialize the mock options in the fuzzing code 2017-10-30 17:05:26 -04:00
include.am Revert "Temporarily disable compilation of the v3 hs fuzzing code" 2017-10-26 09:41:47 -04:00
minimize.sh Tools for working with directories of fuzzed stuff. 2017-01-30 08:37:24 -05:00