summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug64879.phpt
blob: 1df90c6d85cab008ffd272dfc1c630f7b4d5ec91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #64879: quoted_printable_encode() wrong size calculation (CVE-2013-2110)
--FILE--
<?php

quoted_printable_encode(str_repeat("\xf4", 1000)); 
quoted_printable_encode(str_repeat("\xf4", 100000)); 

echo "Done\n";
?>
--EXPECTF--	
Done