[tor-bugs] #2207 [Polipo]: special URL access may cause segfault (NULL-deref)

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Nov 21 08:23:20 UTC 2010


#2207: special URL access may cause segfault (NULL-deref)
----------------------+-----------------------------------------------------
 Reporter:  meyering  |        Type:  defect
   Status:  new       |    Priority:  normal
Milestone:            |   Component:  Polipo
  Version:            |    Keywords:        
   Parent:            |  
----------------------+-----------------------------------------------------
 wget 'http://localhost:8123/polipo/index?'
 can make polipo to dereference NULL.
 That happens if this malloc fails:

         request = malloc(sizeof(SpecialRequestRec));
         if(request == NULL) {
           ...
         } else {
           ...
         }
         ...
         request->object = object

 I've attached a proposed patch:

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


More information about the tor-bugs mailing list