[tor-bugs] #9596 [Tor]: POLICY_BUF_LEN should be longer

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Aug 26 15:27:15 UTC 2013


#9596: POLICY_BUF_LEN should be longer
-----------------------+----------------------------------------------------
 Reporter:  nickm      |          Owner:                    
     Type:  defect     |         Status:  new               
 Priority:  normal     |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor        |        Version:                    
 Keywords:  tor-relay  |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------
 Now that we can have, and need to write, IPv6 policy items, we need to
 increase the length of POLICY_BUF_LEN, since the longest possible exit
 policy item is now
 "accept6 [ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]/128:65535-65535\n".

 Fortunately, we use POLICY_BUF_LEN in only a few places, none of which
 make this super harmful, but it could prevent us from formatting some log
 messages correctly.

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


More information about the tor-bugs mailing list