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

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs