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