BIND 10 #460: constructors of b10-auth and b10-recurse are not exception safe

BIND 10 Development do-not-reply at isc.org
Tue Dec 28 23:49:16 UTC 2010


#460: constructors of b10-auth and b10-recurse are not exception safe
-----------------------+----------------------------------------------------
  Reporter:  jinmei    |            Owner:                       
      Type:  defect    |           Status:  new                  
  Priority:  major     |        Milestone:  y2 12 month milestone
 Component:  b10-auth  |         Keywords:                       
 Sensitive:  0         |   Estimatedhours:  0                    
     Hours:  0         |         Billable:  1                    
Totalhours:  0         |         Internal:  0                    
-----------------------+----------------------------------------------------
 It should be obvious from the code.

 {{{
 AuthSrv::AuthSrv(const bool use_cache, AbstractXfroutClient&
 xfrout_client) :
     impl_(new AuthSrvImpl(use_cache, xfrout_client)),
     checkin_(new ConfigChecker(this)),
     dns_lookup_(new MessageLookup(this)),
     dns_answer_(new MessageAnswer(this))
 {}
 }}}

 Consider the case the allocation for checkin_ fails.

 Recursor::Recursor() has the same problem.

-- 
Ticket URL: <http://bind10.isc.org/ticket/460>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list