From ffdc459cc145ad9a280219a84b4b49a8f3ac7d99 Mon Sep 17 00:00:00 2001 From: Florian Smeets Date: Sat, 21 Mar 2015 19:41:29 +0000 Subject: Add patches for the following CVEs CVE-2015-2301 CVE-2014-9705 CVE-2015-0273 MFH: 2015Q1 --- lang/php53/files/patch-CVE-2014-9705 | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lang/php53/files/patch-CVE-2014-9705 (limited to 'lang/php53/files/patch-CVE-2014-9705') diff --git a/lang/php53/files/patch-CVE-2014-9705 b/lang/php53/files/patch-CVE-2014-9705 new file mode 100644 index 000000000000..0b4d6b1e67be --- /dev/null +++ b/lang/php53/files/patch-CVE-2014-9705 @@ -0,0 +1,34 @@ +--- ext/enchant/enchant.c 2015-03-16 13:42:36.063819735 -0400 ++++ ext/enchant/enchant.c 2015-03-16 13:42:36.059819705 -0400 +@@ -545,13 +545,12 @@ + + d = enchant_broker_request_dict(pbroker->pbroker, (const char *)tag); + if (d) { ++ pos = pbroker->dictcnt++; + if (pbroker->dictcnt) { + pbroker->dict = (enchant_dict **)erealloc(pbroker->dict, sizeof(enchant_dict *) * pbroker->dictcnt); +- pos = pbroker->dictcnt++; + } else { + pbroker->dict = (enchant_dict **)emalloc(sizeof(enchant_dict *)); + pos = 0; +- pbroker->dictcnt++; + } + + dict = pbroker->dict[pos] = (enchant_dict *)emalloc(sizeof(enchant_dict)); +@@ -606,14 +605,14 @@ + + d = enchant_broker_request_pwl_dict(pbroker->pbroker, (const char *)pwl); + if (d) { ++ pos = pbroker->dictcnt++; + if (pbroker->dictcnt) { +- pos = pbroker->dictcnt++; + pbroker->dict = (enchant_dict **)erealloc(pbroker->dict, sizeof(enchant_dict *) * pbroker->dictcnt); + } else { + pbroker->dict = (enchant_dict **)emalloc(sizeof(enchant_dict *)); + pos = 0; +- pbroker->dictcnt++; + } ++ + dict = pbroker->dict[pos] = (enchant_dict *)emalloc(sizeof(enchant_dict)); + dict->id = pos; + dict->pbroker = pbroker; -- cgit v1.2.3