xref: /PHP-8.1/ext/fileinfo/tests/bug81723.phpt (revision ca6d511f)
1--TEST--
2Bug #81723 (Memory corruption in finfo_buffer())
3--EXTENSIONS--
4fileinfo
5--FILE--
6<?php
7$data = hex2bin("00018a7570001097db97979897977d87979797000092001f0051000000000000000000ffff7fff00000000001e0000000000000000000000000c0000000000000000000000000000dc0000000100000000000000004f011900007f0000000000180039000000000000000000000000000000dc0000000100000000000000004f011900007f0000f500000000eeff0000000000000000010000fd00");
8
9$f = finfo_open();
10finfo_buffer($f, $data);
11?>
12--EXPECT--
13