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

Re: [tor-bugs] #3122 [Tor Client]: Write and use constant-time comparison functions



#3122: Write and use constant-time comparison functions
-------------------------+--------------------------------------------------
 Reporter:  rransom      |          Owner:  ioerror           
     Type:  enhancement  |         Status:  needs_review      
 Priority:  major        |      Milestone:  Tor: 0.2.1.x-final
Component:  Tor Client   |        Version:                    
 Keywords:               |         Parent:                    
   Points:               |   Actualpoints:                    
-------------------------+--------------------------------------------------

Comment(by rransom):

 In src/or/control.c:
 {{{
 @@ -508,15 +508,15 @@ connection_printf_to_buf(control_connection_t *conn,
 const char *format, ...)
 }}}
 ...
 {{{
 -  if (tor_memcmp("\r\n\0", buf+len-2, 3)) {
 +  if (fast_memcmp("\r\n\0", buf+len-2, 3)) {
 }}}
 This, too, can be fast_memneq.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3122#comment:22>
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