summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-09-05 15:47:39 +0000
committerMarkus Ullmann <jokey@gentoo.org>2007-09-05 15:47:39 +0000
commitff5bc66d8fd1f4ecbd363c6cfbc14d18a4891b7b (patch)
treeca6650d379531059ab69243c8a0c6da07eb9dd55 /dev-php4
parentStable for HPPA (bug #189738). (diff)
downloadhistorical-ff5bc66d8fd1f4ecbd363c6cfbc14d18a4891b7b.tar.gz
historical-ff5bc66d8fd1f4ecbd363c6cfbc14d18a4891b7b.tar.bz2
historical-ff5bc66d8fd1f4ecbd363c6cfbc14d18a4891b7b.zip
Add missing patches to fix bug #191377
Package-Manager: portage-2.1.3.7
Diffstat (limited to 'dev-php4')
-rw-r--r--dev-php4/pecl-mailparse/ChangeLog7
-rw-r--r--dev-php4/pecl-mailparse/Manifest22
-rw-r--r--dev-php4/pecl-mailparse/files/mailparse-c-64bit-segfault.diff48
-rw-r--r--dev-php4/pecl-mailparse/files/mailparse_mime-rfc2231.diff97
4 files changed, 166 insertions, 8 deletions
diff --git a/dev-php4/pecl-mailparse/ChangeLog b/dev-php4/pecl-mailparse/ChangeLog
index ae91f2118812..f09b3e94c276 100644
--- a/dev-php4/pecl-mailparse/ChangeLog
+++ b/dev-php4/pecl-mailparse/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-php4/pecl-mailparse
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php4/pecl-mailparse/ChangeLog,v 1.10 2007/09/04 17:29:00 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php4/pecl-mailparse/ChangeLog,v 1.11 2007/09/05 15:47:39 jokey Exp $
+
+ 05 Sep 2007; Markus Ullmann <jokey@gentoo.org>
+ +files/mailparse-c-64bit-segfault.diff,
+ +files/mailparse_mime-rfc2231.diff:
+ Add missing patches to fix bug #191377
*pecl-mailparse-2.1.1-r1 (04 Sep 2007)
diff --git a/dev-php4/pecl-mailparse/Manifest b/dev-php4/pecl-mailparse/Manifest
index af9d29bca0eb..549fcb9b1c7d 100644
--- a/dev-php4/pecl-mailparse/Manifest
+++ b/dev-php4/pecl-mailparse/Manifest
@@ -5,6 +5,14 @@ AUX cvs-mailparse.c-fix.diff 1914 RMD160 e1c94fa8eee692f8b68ae3f1c5f6592d864d08b
MD5 35dd19f4a7b42bb6210dc30fc9897d63 files/cvs-mailparse.c-fix.diff 1914
RMD160 e1c94fa8eee692f8b68ae3f1c5f6592d864d08b5 files/cvs-mailparse.c-fix.diff 1914
SHA256 a10e31d2923af5e618cc044260003cd5a1fabe6e929eaa90c850f317e3b5f12b files/cvs-mailparse.c-fix.diff 1914
+AUX mailparse-c-64bit-segfault.diff 1158 RMD160 420f29ebf144e90b16f781a895a98476805c17df SHA1 d4decba1c4ae4d367e965e75c74f65dbcd825be6 SHA256 329c76ff90ea50ab0875ce73e931e72cb8bf77f17e05d68e038808ca8a971b74
+MD5 408b9f516dcfce1d327eb788c80aebcf files/mailparse-c-64bit-segfault.diff 1158
+RMD160 420f29ebf144e90b16f781a895a98476805c17df files/mailparse-c-64bit-segfault.diff 1158
+SHA256 329c76ff90ea50ab0875ce73e931e72cb8bf77f17e05d68e038808ca8a971b74 files/mailparse-c-64bit-segfault.diff 1158
+AUX mailparse_mime-rfc2231.diff 3614 RMD160 70b932feb1b0068c6f05154a2e28ac62545b36b1 SHA1 7fe6048c759254ff6a969049c20564a95c8fb4ad SHA256 a281f65c370a09a247ebcf23822c8086814319658d4bf040082e420d53ee4cfd
+MD5 032224424c751029396615595cd7d895 files/mailparse_mime-rfc2231.diff 3614
+RMD160 70b932feb1b0068c6f05154a2e28ac62545b36b1 files/mailparse_mime-rfc2231.diff 3614
+SHA256 a281f65c370a09a247ebcf23822c8086814319658d4bf040082e420d53ee4cfd files/mailparse_mime-rfc2231.diff 3614
DIST mailparse-2.1.1.tgz 35883 RMD160 6b8452301b53167dea9bbdca3c46889c52ada474 SHA1 aba4ea27267d2fb21a14af89a68be444776074b5 SHA256 c7bcccf079c70dfd76c07074bae3653d3c7ab64441ab888bf5a5e334f83ad206
EBUILD pecl-mailparse-2.1.1-r1.ebuild 876 RMD160 7220eadf8451aff2499efa19a1606f799c22f72d SHA1 3b25f52944463b91d4170db048899905e7decb2d SHA256 b4c2c4bb573643df5c0ff1f94275c1682b149318b05d3f049b5b4f2ff3c89ea4
MD5 84738aa6aab9165fcc0a8aca7bea4785 pecl-mailparse-2.1.1-r1.ebuild 876
@@ -14,10 +22,10 @@ EBUILD pecl-mailparse-2.1.1.ebuild 786 RMD160 be9dc5726bae4fdce11fd52e85a5a6f6c9
MD5 416a7b76d7d9c7aa5230323a43b297d0 pecl-mailparse-2.1.1.ebuild 786
RMD160 be9dc5726bae4fdce11fd52e85a5a6f6c9110288 pecl-mailparse-2.1.1.ebuild 786
SHA256 792634883d244b2c5a0e12955289dfac2f9f178452a04ceadd1cab92657e3f03 pecl-mailparse-2.1.1.ebuild 786
-MISC ChangeLog 1408 RMD160 229211d543862bf6e976e793232a132f89baada0 SHA1 17af1e7d5b6e2f4b85e9f12a2bdf0e80a880481c SHA256 59828d4203783f919215321e3f732d467f757cebbdff82c3b423d67423399318
-MD5 7448ab6380da6d612cfaf689db26fbca ChangeLog 1408
-RMD160 229211d543862bf6e976e793232a132f89baada0 ChangeLog 1408
-SHA256 59828d4203783f919215321e3f732d467f757cebbdff82c3b423d67423399318 ChangeLog 1408
+MISC ChangeLog 1579 RMD160 0a66ddf0fecb5ec56e391a89fca43f56fa86a9bb SHA1 4e7c7969e3760b65a6657c9ac554046d60b8a723 SHA256 9b03dc7e7024f17335628c6ad433bc707a224a33477e756667a0666bcdaa6db2
+MD5 153f9ac6092f40585d462c4d52de0b69 ChangeLog 1579
+RMD160 0a66ddf0fecb5ec56e391a89fca43f56fa86a9bb ChangeLog 1579
+SHA256 9b03dc7e7024f17335628c6ad433bc707a224a33477e756667a0666bcdaa6db2 ChangeLog 1579
MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1
MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157
RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a metadata.xml 157
@@ -31,7 +39,7 @@ SHA256 a26c336ff4155650bb31b7499e058812303dba9c4abda1c0e05f4036d644f35b files/di
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.6 (GNU/Linux)
-iD8DBQFG3ZXiz974XjDVpbkRAkFXAJ43/HILWuzYlR9L5rVSto20nXe/xACg2MA/
-Y/JPW42vu5a6eTAWksfmmtE=
-=CJc+
+iD8DBQFG3s+kz974XjDVpbkRAtAGAJ4y04ISFqQXgqSqIEQR0NI5wMP7yACg242T
+E3+VSleTK9XLeDyXXFCgawM=
+=cEr3
-----END PGP SIGNATURE-----
diff --git a/dev-php4/pecl-mailparse/files/mailparse-c-64bit-segfault.diff b/dev-php4/pecl-mailparse/files/mailparse-c-64bit-segfault.diff
new file mode 100644
index 000000000000..f150a0dbbbf8
--- /dev/null
+++ b/dev-php4/pecl-mailparse/files/mailparse-c-64bit-segfault.diff
@@ -0,0 +1,48 @@
+--- mailparse-1.49.c 2006-09-30 18:42:45.000000000 +0400
++++ mailparse.c 2006-09-30 22:03:37.000000000 +0400
+@@ -231,7 +231,7 @@
+ php_mimepart *part;
+ zval *zpart;
+ char *mode;
+- long mode_len;
++ int mode_len;
+ zval *source = NULL;
+
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz!", &mode,&mode_len, &source) == FAILURE)
+@@ -839,7 +839,7 @@
+ PHP_FUNCTION(mailparse_rfc822_parse_addresses)
+ {
+ char *addresses;
+- long addresses_len;
++ int addresses_len;
+ php_rfc822_tokenized_t *toks = NULL;
+ php_rfc822_addresses_t *addrs = NULL;
+ int i;
+@@ -1031,7 +1031,7 @@
+ PHP_FUNCTION(mailparse_msg_parse)
+ {
+ char *data;
+- long data_len;
++ int data_len;
+ zval *arg;
+ php_mimepart *part;
+
+@@ -1053,7 +1053,7 @@
+ PHP_FUNCTION(mailparse_msg_parse_file)
+ {
+ char *filename;
+- long filename_len;
++ int filename_len;
+ php_mimepart *part;
+ char *filebuf;
+ php_stream *stream;
+@@ -1501,7 +1501,7 @@
+ zval *arg;
+ php_mimepart *part, *foundpart;
+ char *mimesection;
+- long mimesection_len;
++ int mimesection_len;
+
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &arg,&mimesection, &mimesection_len) == FAILURE) {
+ RETURN_FALSE;
+
diff --git a/dev-php4/pecl-mailparse/files/mailparse_mime-rfc2231.diff b/dev-php4/pecl-mailparse/files/mailparse_mime-rfc2231.diff
new file mode 100644
index 000000000000..068dc5be3807
--- /dev/null
+++ b/dev-php4/pecl-mailparse/files/mailparse_mime-rfc2231.diff
@@ -0,0 +1,97 @@
+--- php_mailparse_mime.c.orig Mon Feb 28 14:21:45 2005
++++ php_mailparse_mime.c Fri Dec 15 10:57:16 2006
+@@ -54,7 +54,11 @@
+ {
+ struct php_mimeheader_with_attributes *attr;
+ int i, first_semi, next_semi, comments_before_semi, netscape_bug = 0;
+-
++ char *name_buf = NULL;
++ smart_str value_buf = {0};
++ int is_rfc2231_name = 0;
++ char *check_name;
++
+ attr = ecalloc(1, sizeof(struct php_mimeheader_with_attributes));
+
+ MAKE_STD_ZVAL(attr->attributes);
+@@ -106,7 +110,7 @@
+
+ /* count those tokens; we expect "token = token" (3 tokens); if there are
+ * more than that, then something is quite possibly wrong - Netscape Bug! */
+- if (next_semi <= toks->ntokens
++ if (next_semi < toks->ntokens
+ && toks->tokens[next_semi].token != ';'
+ && next_semi - first_semi - comments_before_semi > 3) {
+ next_semi = i + 1;
+@@ -117,9 +121,56 @@
+ PHP_RFC822_RECOMBINE_STRTOLOWER|PHP_RFC822_RECOMBINE_IGNORE_COMMENTS);
+ value = php_rfc822_recombine_tokens(toks, i, next_semi - i,
+ PHP_RFC822_RECOMBINE_IGNORE_COMMENTS);
+-
+- add_assoc_string(attr->attributes, name, value, 0);
+- efree(name);
++
++ /* support rfc2231 mime parameter value
++ *
++ * Parameter Value Continuations:
++ *
++ * Content-Type: message/external-body; access-type=URL;
++ * URL*0="ftp://";
++ * URL*1="cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar"
++ *
++ * is semantically identical to
++ *
++ * Content-Type: message/external-body; access-type=URL;
++ * URL="ftp://cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar"
++ *
++ * Parameter Value Character Set and Language Information:
++ *
++ * Content-Type: application/x-stuff;
++ * title*=us-ascii'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A
++ *
++ * Modify by Zhao Wei
++ * E-mail: zhaowei@eyou.net
++ */
++ check_name = name;
++ while (*check_name) {
++ if (*check_name == '*')
++ break;
++ check_name++;
++ }
++ if (*check_name == '*') {
++ *check_name = 0;
++ if (NULL == name_buf)
++ name_buf = name;
++ else
++ efree(name);
++ smart_str_appends(&value_buf, value);
++ efree(value);
++ is_rfc2231_name = 1;
++ }
++
++ if (1 == is_rfc2231_name) {
++ if (*name != 0 && strcmp(name_buf, name) != 0) {
++ add_assoc_string(attr->attributes, name_buf, estrndup(value_buf.c, value_buf.len), 0);
++ efree(name_buf);
++ smart_str_free(&value_buf);
++ is_rfc2231_name = 0;
++ }
++ } else {
++ add_assoc_string(attr->attributes, name, value, 0);
++ efree(name);
++ }
+ }
+ }
+ if (next_semi < toks->ntokens && !netscape_bug)
+@@ -128,6 +179,13 @@
+ first_semi = next_semi;
+ netscape_bug = 0;
+ }
++ if (1 == is_rfc2231_name) {
++ add_assoc_string(attr->attributes, name_buf, estrndup(value_buf.c, value_buf.len), 0);
++ efree(name_buf);
++ smart_str_free(&value_buf);
++ }
++
++
+ return attr;
+ }