[tor-bugs] #13806 [Tor]: Count HSDir storage towards MaxMemInQueues

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 12 18:41:57 UTC 2015


#13806: Count HSDir storage towards MaxMemInQueues
------------------------+-------------------------------------------
     Reporter:  nickm   |      Owner:
         Type:  defect  |     Status:  needs_review
     Priority:  normal  |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor     |    Version:
   Resolution:          |   Keywords:  tor-relay tor-hs oom security
Actual Points:          |  Parent ID:
       Points:          |
------------------------+-------------------------------------------
Changes (by dgoulet):

 * keywords:  tor-relay, tor-hs, oom, security, nickm-patch => tor-relay
     tor-hs oom security


Comment:

 The only part I was still worried about is this one for overflow but I
 hardly see a way that it could realistically happen here unless we have
 actually X cache entries and that number times the size of a single object
 is bigger than {{{size_t}}} for which you'll do a couple more loops until
 the last served cuttoff is big enough.

 {{{
 bytes_removed += rend_cache_entry_allocation(ent);
 }}}

 So, looks good! here is my Acked-by!

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13806#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list