diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-01-06 17:23:22 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-01-06 17:23:22 +0100 |
commit | b2e73532d8e76408de08eed664c9a5ba11e7568b (patch) | |
tree | bcf7f9e1a8c9aa9cd16f949903109de037471022 /bug70755.patch | |
parent | 41e771120a8e364f6076c6f009f7912b49be6d8d (diff) |
PHP 5.4.45 with security patches from 5.5.31
Diffstat (limited to 'bug70755.patch')
-rw-r--r-- | bug70755.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bug70755.patch b/bug70755.patch new file mode 100644 index 0000000..1090b87 --- /dev/null +++ b/bug70755.patch @@ -0,0 +1,28 @@ +Backported from 5.5 for 5.4 by Remi Collet + +From be19dbcb84fea0001e53cea2732c00de7ae6c371 Mon Sep 17 00:00:00 2001 +From: Stanislav Malyshev <stas@php.net> +Date: Tue, 8 Dec 2015 00:10:07 -0800 +Subject: [PATCH] Fixed bug #70755: fpm_log.c memory leak and buffer overflow + +--- + NEWS | 3 +++ + sapi/fpm/fpm/fpm_log.c | 5 +++++ + 2 files changed, 8 insertions(+) + +diff --git a/sapi/fpm/fpm/fpm_log.c b/sapi/fpm/fpm/fpm_log.c +index b0bf32a..187fe9b 100644 +--- a/sapi/fpm/fpm/fpm_log.c ++++ b/sapi/fpm/fpm/fpm_log.c +@@ -446,6 +446,11 @@ int fpm_log_write(char *log_format TSRMLS_DC) /* {{{ */ + b += len2; + len += len2; + } ++ if (len >= FPM_LOG_BUFFER) { ++ zlog(ZLOG_NOTICE, "the log buffer is full (%d). The access log request has been truncated.", FPM_LOG_BUFFER); ++ len = FPM_LOG_BUFFER; ++ break; ++ } + continue; + } + |