[Varnish] #752: [Bug] [varnish-2.1.2] No Null pointer check [strdup] :: no assertion

Varnish varnish-bugs at varnish-cache.org
Fri Aug 13 10:54:33 CEST 2010


#752: [Bug] [varnish-2.1.2] No Null pointer check [strdup] :: no assertion
-----------------------+----------------------------------------------------
 Reporter:  pprocacci  |       Owner:  phk                
     Type:  defect     |      Status:  new                
 Priority:  low        |   Milestone:  Varnish 2.1 release
Component:  varnishd   |     Version:  2.1.2              
 Severity:  minor      |    Keywords:  Null Pointer       
-----------------------+----------------------------------------------------
 vcc_compile.c: line 370 of 682

 <snip>
         sp->name = strdup(name);
 </snip>

 strdup could return NULL, but sp->name is never checked.  There is no
 assertion here which I gather should be.

-- 
Ticket URL: <http://varnish-cache.org/ticket/752>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list