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

[tor-bugs] #10423 [Tor]: Avoid bad free on failure to dump microdescriptor.



#10423: Avoid bad free on failure to dump microdescriptor.
-----------------------+------------------------------------
 Reporter:  nickm      |          Owner:
     Type:  defect     |         Status:  new
 Priority:  normal     |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor        |        Version:
 Keywords:  tor-relay  |  Actual Points:
Parent ID:             |         Points:
-----------------------+------------------------------------
 When we wipe out an unwriteable microdescriptor's body because
 dump_microdescriptor() failed, we forgot to clear its body field too.
 This will cause trouble later when we call microdesc_free() on that
 descriptor.

 This is a problem in our #9047 fix.

 Spotted by bobnomnom.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10423>
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