summaryrefslogtreecommitdiff
path: root/src/test/test_rendcache.c
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2015-11-11 11:50:09 +0100
committerNick Mathewson <nickm@torproject.org>2015-12-09 10:22:26 -0500
commit3d0d2a511c13d6d24be73c8651374c4d7db99379 (patch)
tree43581fd893a7ecbce59b27d0fb747e0bf8e710b4 /src/test/test_rendcache.c
parent2a965b7537a7f46ec22f998305280a4ad89018f0 (diff)
downloadtor-3d0d2a511c13d6d24be73c8651374c4d7db99379.tar.gz
tor-3d0d2a511c13d6d24be73c8651374c4d7db99379.zip
Fix buffer over-reads in the directory tests
The tests pass empty digest strings to the dir_server_new function which copies it into a directory server structure. The copy operation expects the digest strings to be DIGEST_LEN characters long. Because the length of the empty digest strings are lower than DIGEST_LEN, the copy operation reads outside the digest strings which leads to buffer over-reads. The issue is resolved by using character arrays with a size of DIGEST_LEN. Patch on 4ff08bb5811ddfe554e597d129ec48a774364480.
Diffstat (limited to 'src/test/test_rendcache.c')
0 files changed, 0 insertions, 0 deletions