From: Stanislav Malyshev Date: Wed, 19 Sep 2007 00:42:20 +0000 (+0000) Subject: MFB length tests X-Git-Tag: RELEASE_2_0_0a1~1794 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fce3f4e02ba374e9c364736443ee6e2292364fa;p=php MFB length tests --- diff --git a/ext/iconv/tests/iconv-charset-length-cve-2007-4840.phpt b/ext/iconv/tests/iconv-charset-length-cve-2007-4840.phpt new file mode 100755 index 0000000000..03b3574d6e --- /dev/null +++ b/ext/iconv/tests/iconv-charset-length-cve-2007-4840.phpt @@ -0,0 +1,17 @@ +--TEST-- +iconv() charset parameter length checks (CVE-2007-4840) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- + +Warning: iconv(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false) + +Warning: iconv(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false) diff --git a/ext/iconv/tests/iconv_mime_decode-charset-length-cve-2007-4840.phpt b/ext/iconv/tests/iconv_mime_decode-charset-length-cve-2007-4840.phpt new file mode 100755 index 0000000000..d4ed01d956 --- /dev/null +++ b/ext/iconv/tests/iconv_mime_decode-charset-length-cve-2007-4840.phpt @@ -0,0 +1,13 @@ +--TEST-- +iconv_mime_decode() charset parameter length checks (CVE-2007-4840) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- + +Warning: iconv_mime_decode(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false) diff --git a/ext/iconv/tests/iconv_mime_decode_headers-charset-length-cve-2007-4840.phpt b/ext/iconv/tests/iconv_mime_decode_headers-charset-length-cve-2007-4840.phpt new file mode 100755 index 0000000000..48d664d600 --- /dev/null +++ b/ext/iconv/tests/iconv_mime_decode_headers-charset-length-cve-2007-4840.phpt @@ -0,0 +1,13 @@ +--TEST-- +iconv_mime_decode_headers() charset parameter length checks (CVE-2007-4840) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- + +Warning: iconv_mime_decode_headers(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false) diff --git a/ext/iconv/tests/iconv_set_encoding-charset-length-cve-2007-4840.phpt b/ext/iconv/tests/iconv_set_encoding-charset-length-cve-2007-4840.phpt new file mode 100755 index 0000000000..e6abca5df1 --- /dev/null +++ b/ext/iconv/tests/iconv_set_encoding-charset-length-cve-2007-4840.phpt @@ -0,0 +1,21 @@ +--TEST-- +iconv_set_encoding() charset parameter length checks (CVE-2007-4840) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- + +Warning: iconv_set_encoding(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false) + +Warning: iconv_set_encoding(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false) + +Warning: iconv_set_encoding(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false) diff --git a/ext/iconv/tests/iconv_strlen-charset-length-cve-2007-4840.phpt b/ext/iconv/tests/iconv_strlen-charset-length-cve-2007-4840.phpt new file mode 100755 index 0000000000..348cfb1265 --- /dev/null +++ b/ext/iconv/tests/iconv_strlen-charset-length-cve-2007-4840.phpt @@ -0,0 +1,13 @@ +--TEST-- +iconv_strlen() charset parameter length checks (CVE-2007-4840) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- + +Warning: iconv_strlen(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false) diff --git a/ext/iconv/tests/iconv_strpos-charset-length-cve-2007-4840.phpt b/ext/iconv/tests/iconv_strpos-charset-length-cve-2007-4840.phpt new file mode 100755 index 0000000000..4cb858f0db --- /dev/null +++ b/ext/iconv/tests/iconv_strpos-charset-length-cve-2007-4840.phpt @@ -0,0 +1,13 @@ +--TEST-- +iconv_strpos() charset parameter length checks (CVE-2007-4840) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- + +Warning: iconv_strpos(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false) diff --git a/ext/iconv/tests/iconv_strrpos-charset-length-cve-2007-4840.phpt b/ext/iconv/tests/iconv_strrpos-charset-length-cve-2007-4840.phpt new file mode 100755 index 0000000000..948cc67c77 --- /dev/null +++ b/ext/iconv/tests/iconv_strrpos-charset-length-cve-2007-4840.phpt @@ -0,0 +1,13 @@ +--TEST-- +iconv_strrpos() charset parameter length checks (CVE-2007-4840) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- + +Warning: iconv_strrpos(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false) diff --git a/ext/iconv/tests/iconv_substr-charset-length-cve-2007-4783.phpt b/ext/iconv/tests/iconv_substr-charset-length-cve-2007-4783.phpt new file mode 100755 index 0000000000..c27e60d1dd --- /dev/null +++ b/ext/iconv/tests/iconv_substr-charset-length-cve-2007-4783.phpt @@ -0,0 +1,14 @@ +--TEST-- +iconv_substr() charset parameter length checks (CVE-2007-4783) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- + +Warning: iconv_substr(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d +bool(false)