[tor-bugs] #27740 [Core Tor/Tor]: rust protover_all_supported() returns rust-allocated string in *missing_out

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 20 18:16:28 UTC 2018


#27740: rust protover_all_supported() returns rust-allocated string in *missing_out
--------------------------+------------------------------------
 Reporter:  cyberpunks    |          Owner:  (none)
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: unspecified
Component:  Core Tor/Tor  |        Version:  Tor: 0.3.3.1-alpha
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by cyberpunks):

 This needs the keywords `rust, protover, memory-safety`. You can't
 `tor_free()` a string allocated by rust code, which is what the C code
 will immediately try to do.

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


More information about the tor-bugs mailing list