[Varnish] #334: GLIBC asprintf() incompatibility

Varnish varnish-bugs at projects.linpro.no
Fri Sep 26 13:49:22 CEST 2008

#334: GLIBC asprintf() incompatibility
 Reporter:  phk      |       Owner:  phk              
     Type:  defect   |      Status:  new              
 Priority:  lowest   |   Milestone:  After Varnish 2.1
Component:  build    |     Version:  trunk            
 Severity:  trivial  |    Keywords:                   
 GLIBC does not return a NULL pointer when something goes wrong like the
 FreeBSD version does.

 Varnish checks the returned pointer for non-NULL-ness as success criteria
 relying on the FreeBSD sematics.

 This is only relevant if you run out of malloc(3) memory, in which case
 you are toast anyway.

 But it can give rise to GCC complaints about unchecked return values from
 asprintf(), therefore this ticket.

 (NB all binaries and libs need checked, therefore component==build.)

Ticket URL: <http://varnish.projects.linpro.no/ticket/334>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list