[tor-bugs] #28077 [Core Tor/Tor]: remove unsafe block from cstr! macro

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Oct 17 00:12:05 UTC 2018


#28077: remove unsafe block from cstr! macro
--------------------------------+------------------------------
 Reporter:  cyberpunks          |          Owner:  (none)
     Type:  defect              |         Status:  new
 Priority:  Medium              |      Component:  Core Tor/Tor
  Version:  Tor: 0.3.4.1-alpha  |       Severity:  Normal
 Keywords:  rust                |  Actual Points:
Parent ID:                      |         Points:
 Reviewer:                      |        Sponsor:
--------------------------------+------------------------------
 {{{
          .unwrap_or(
             unsafe{
                 ::std::ffi::CStr::from_bytes_with_nul_unchecked(b"\0")
             }
         )
 }}}

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


More information about the tor-bugs mailing list