aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir_common.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-11 14:42:39 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-11 14:44:45 -0500
commita7ca71cf6b2fb46b049442569188ce046cfd6c34 (patch)
tree371524ee86ff1266006f49255c98896e6b778bd0 /src/test/test_dir_common.c
parent512dfa15edf9723cb5bfa2b86d5658e320496445 (diff)
downloadtor-a7ca71cf6b2fb46b049442569188ce046cfd6c34.tar.gz
tor-a7ca71cf6b2fb46b049442569188ce046cfd6c34.zip
Fix mock_crypto_pk_public_checksig__nocheck() to handle short RSA keys
This function -- a mock replacement used only for fuzzing -- would have a buffer overflow if it got an RSA key whose modulus was under 20 bytes long. Fortunately, Tor itself does not appear to have a bug here. Fixes bug 24247; bugfix on 0.3.0.3-alpha when fuzzing was introduced. Found by OSS-Fuzz; this is OSS-Fuzz issue 4177.
Diffstat (limited to 'src/test/test_dir_common.c')
0 files changed, 0 insertions, 0 deletions