mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
BUG/MINOR: mux-fcgi: Use a literal string as format in app_log()
This avoid any crashes if stderr messages contain format specifiers. This patch partially fixes the issue #295. No backport needed.
This commit is contained in:
parent
82c798a082
commit
c45791aa52
@ -1931,7 +1931,7 @@ static int fcgi_strm_handle_stderr(struct fcgi_conn *fconn, struct fcgi_strm *fs
|
|||||||
trash.area[ret] = '\n';
|
trash.area[ret] = '\n';
|
||||||
trash.area[ret+1] = '\0';
|
trash.area[ret+1] = '\0';
|
||||||
tag.area = fconn->app->name; tag.data = strlen(fconn->app->name);
|
tag.area = fconn->app->name; tag.data = strlen(fconn->app->name);
|
||||||
app_log(&fconn->app->logsrvs, &tag, LOG_ERR, trash.area);
|
app_log(&fconn->app->logsrvs, &tag, LOG_ERR, "%s", trash.area);
|
||||||
|
|
||||||
if (fconn->drl)
|
if (fconn->drl)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user