xref: /PHP-7.2/ext/iconv/tests/bug78069.phpt (revision 7cf7148a)
1--TEST--
2Bug #78069 (Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow)
3--SKIPIF--
4<?php
5if (!extension_loaded('iconv')) die('skip ext/iconv required');
6?>
7--FILE--
8<?php
9$hdr = iconv_mime_decode_headers(file_get_contents(__DIR__ . "/bug78069.data"),2);
10var_dump(count($hdr));
11?>
12DONE
13--EXPECT--
14int(1)
15DONE