[tor-bugs] #24029 [Core Tor/Tor]: Test all rust functions' behavior when called from C with bad UTF8

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Mar 29 22:13:45 UTC 2018


#24029: Test all rust functions' behavior when called from C with bad UTF8
-------------------------------------------------+-------------------------
 Reporter:  nickm                                |          Owner:
                                                 |  chelseakomlo
     Type:  defect                               |         Status:  closed
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.3.3.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:  not a
 Keywords:  rust, 033-triage-20180320,           |  bug
  033-removed-20180320                           |  Actual Points:
Parent ID:  #24265                               |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by teor):

 If C doesn't reject bad UTF-8, and Rust does, then that's a potential
 difference in behaviour.

 We could avoid this issue by making both C and Rust check that all
 directory documents are ASCII (#18938), or that they are all UTF-8. We
 have a proposal for making directory documents UTF-8.

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


More information about the tor-bugs mailing list