[tor-bugs] #5091 [- Select a component]: tor_strtok_r_impl incompatible with strtok_r

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Feb 11 22:21:55 UTC 2012


#5091: tor_strtok_r_impl incompatible with strtok_r
----------------------------------+-----------------------------------------
 Reporter:  emanchado             |          Owner:     
     Type:  defect                |         Status:  new
 Priority:  minor                 |      Milestone:     
Component:  - Select a component  |        Version:     
 Keywords:  unittest              |         Parent:     
   Points:                        |   Actualpoints:     
----------------------------------+-----------------------------------------
 tor_strtok_r_impl doesn't behave strtok_r in certain cases, eg:

  * On empty string, it should return NULL directly (rather than an empty
 string).

  * When one of the separators is at the end of the input string, there
 should be no extra token at the end (ie. if you split "howdy!" on "!",
 there should be a single token "howdy", not "howdy" and "").

  * When the input string consists exclusively of separator characters,
 there should be no tokens.

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


More information about the tor-bugs mailing list