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

[tor-bugs] #1731 [Tor - Tor client]: tor misparses libevent 1.4.14b-stable on bsd



#1731: tor misparses libevent 1.4.14b-stable on bsd
------------------------------+---------------------------------------------
 Reporter:  arma              |       Owner:  nickm             
     Type:  defect            |      Status:  new               
 Priority:  normal            |   Milestone:  Tor: 0.2.2.x-final
Component:  Tor - Tor client  |     Version:  Tor: unspecified  
 Keywords:                    |      Parent:                    
------------------------------+---------------------------------------------
 <Tas> hm, Tor v0.2.2.14-alpha has a wrong message on startup: "Jul 26
 03:43:56.451 [warn] Libevent version 1.4.14b-stable often crashes when
 running a Tor server with BSD variants. Please use the latest version of
 libevent (1.3b or later)"
 <Tas> 1.4.x is newer than 1.3.x
 <Tas> and it doesn't crash either :-)

 In tor_decode_libevent_version() it says:
   /* Try the new preferred "1.4.11-stable" format. */
   fields = sscanf(v, "%u.%u.%u%c", &major, &minor, &patchlevel, &c);
   if (fields == 3 ||
       (fields == 4 && (c == '-' || c == '_'))) {
     return V(major,minor,patchlevel);
   }
 Perhaps the problem is that Tor doesn't know how to handle both a letter
 and a dash?

 I don't know what strings are valid libevent versions, so this is best as
 Nick's bug.

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