[Varnish] #742: vcl.show possible segmentation fault when using format-strings
Varnish
varnish-bugs at varnish-cache.org
Tue Jul 27 11:40:00 CEST 2010
#742: vcl.show possible segmentation fault when using format-strings
-------------------+--------------------------------------------------------
Reporter: nav | Type: defect
Status: new | Priority: normal
Milestone: | Component: build
Version: trunk | Severity: normal
Keywords: |
-------------------+--------------------------------------------------------
Using following vcl code may cause segfault while handling vcl.show
command.
{{{
C{
void whatever_function_that_is_never_called(){
// Important part are the %s
syslog(0, "%s %s %s", "", "", "");
}
}C
}}}
Problem occurs when mentioned command is issued. To show code function
cli_out is used without additional arguments. This function handles input
as format string + params - therefore these %s will be replaced by data on
stack.
Sometimes you can get only trash in your vcl code, but its possible to get
segfault. The more %s the bigger is probability of segfault.
--
Ticket URL: <http://varnish-cache.org/ticket/742>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list