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

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs