[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #8042 [- Select a component]: Reloaded md never be purged for platforms with unsigned time_t



#8042: Reloaded md never be purged for platforms with unsigned time_t
----------------------------------+-----------------------------------------
 Reporter:  cypherpunks           |          Owner:     
     Type:  defect                |         Status:  new
 Priority:  normal                |      Milestone:     
Component:  - Select a component  |        Version:     
 Keywords:                        |         Parent:     
   Points:                        |   Actualpoints:     
----------------------------------+-----------------------------------------
 microdesc_cache_reload() calls microdescs_add_to_cache() with listed_at ==
 -1, so md->last_listed was defined by annotation loaded from disk only.
 {{{
   if (listed_at > 0) {
     SMARTLIST_FOREACH(descriptors, microdesc_t *, md,
                       md->last_listed = listed_at);
 }}}
 But if unsigned time_t then last_listed updated to 0xFF..FF value so that
 md never be purged by microdesc_cache_clean(). If such md was flushed to
 disk during rebuild cache then it will forever live.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8042>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs