Skip to content
  • cypherpunks's avatar
    Fix buffer over-reads in the rendcache tests · c94aa457
    cypherpunks authored and Nick Mathewson's avatar Nick Mathewson committed
    The hidden service descriptor cache (rendcache) tests use digest maps
    which expect keys to have a length of DIGEST_LEN.
    
    Because the tests use key strings with a length lower than DIGEST_LEN,
    the internal copy operation reads outside the key strings which leads to
    buffer over-reads.
    
    The issue is resolved by using character arrays with a size of
    DIGEST_LEN.
    
    Patch on ade50058.
    c94aa457