summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-php/modphp/files/php-CVE-2014-3587.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-webserver/recipes-php/modphp/files/php-CVE-2014-3587.patch')
-rw-r--r--meta-webserver/recipes-php/modphp/files/php-CVE-2014-3587.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-webserver/recipes-php/modphp/files/php-CVE-2014-3587.patch b/meta-webserver/recipes-php/modphp/files/php-CVE-2014-3587.patch
new file mode 100644
index 000000000..e1c40f244
--- /dev/null
+++ b/meta-webserver/recipes-php/modphp/files/php-CVE-2014-3587.patch
@@ -0,0 +1,31 @@
1modphp: Security Advisory - php - CVE-2014-3587
2
3Upstream-Status: Backport
4
5Signed-off-by: Yue Tao <yue.tao@windriver.com>
6
7From 7ba1409a1aee5925180de546057ddd84ff267947 Mon Sep 17 00:00:00 2001
8From: Remi Collet <rcollet@redhat.com>
9Date: Thu, 14 Aug 2014 17:19:03 -0700
10Subject: [PATCH] Fix bug #67716 - Segfault in cdf.c
11
12---
13 ext/fileinfo/libmagic/cdf.c | 2 +-
14 2 files changed, 2 insertions(+), 1 deletion(-)
15
16diff --git a/ext/fileinfo/libmagic/cdf.c b/ext/fileinfo/libmagic/cdf.c
17index 429f3b9..2c0a2d9 100644
18--- a/ext/fileinfo/libmagic/cdf.c
19+++ b/ext/fileinfo/libmagic/cdf.c
20@@ -820,7 +820,7 @@ cdf_read_property_info(const cdf_stream_t *sst, const cdf_header_t *h,
21 q = (const uint8_t *)(const void *)
22 ((const char *)(const void *)p + ofs
23 - 2 * sizeof(uint32_t));
24- if (q > e) {
25+ if (q < p || q > e) {
26 DPRINTF(("Ran of the end %p > %p\n", q, e));
27 goto out;
28 }
29--
301.7.9.5
31