Ticket #742 (closed defect: fixed)
vcl.show possible segmentation fault when using format-strings
| Reported by: | nav | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | build | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
