[tor-bugs] #1954 [Tor Client]: LoadLibrary used without restrictions for search path

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Sep 24 11:56:16 UTC 2010


#1954: LoadLibrary used without restrictions for search path
------------------------+---------------------------------------------------
 Reporter:  Sebastian   |       Owner:                    
     Type:  defect      |      Status:  needs_review      
 Priority:  major       |   Milestone:  Tor: 0.2.2.x-final
Component:  Tor Client  |     Version:                    
 Keywords:              |      Parent:                    
------------------------+---------------------------------------------------

Comment(by Sebastian):

 {{{
 +  TCHAR path[MAX_PATH];
 +  unsigned n;
 +  n = GetSystemDirectory(path, 1024);
 }}}

 that looks weird. MAX_PATH once, then 1024?

 Also you'll want to remove these two XXX I think:
 {{{
    /* XXXX Possibly, we should hardcode the location of this DLL. */
 }}}

 I'm not done reviewing but am running of for a bit.

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


More information about the tor-bugs mailing list