[tor-bugs] #16449 [Tor]: Segmentation fault on key generation

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jun 26 10:15:18 UTC 2015


#16449: Segmentation fault on key generation
-------------------------+----------------------------------
 Reporter:  cypherpunks  |          Owner:
     Type:  defect       |         Status:  new
 Priority:  normal       |      Milestone:
Component:  Tor          |        Version:  Tor: unspecified
 Keywords:               |  Actual Points:
Parent ID:               |         Points:
-------------------------+----------------------------------
 When tor cannot find any existing keys, the --keygen flag crashes with a
 segmentation fault. This is caused by using the return value of
 `crypto_read_tagged_contents_from_file` for wiping the `encrypted_key`
 array.

 The solution is to use the array size as the size (like the `pwbuf`
 array). The patch for review follows.

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


More information about the tor-bugs mailing list