php-src/ext/fileinfo/tests
Anatol Belski 2a062f3c02 Rework magic data once more
The change reduces the input size on patterns using posix character
classes. It is still better than reverting to the patterns from the
older version, as the upstream data uses posix classes also in the later
versions. The input reduction speeds up the pattern matching in some
cases.

This patch is functionally almost same as upstream, but might show some diff
when the input is very long. While the magic data in the newer versions is
functionally an improvement, with jit=0 it might show a performance regression.
The slowdown is negligible in the normal usage and is still acceptable for the
malicious input. If some functional regressions show up, this patch should be
reverted and the tests timing should be adapted instead.
2018-11-14 22:23:24 +01:00
..
resources Fixed bug #66307 Fileinfo crashes with powerpoint files 2014-05-26 18:04:27 -07:00
67647.mov Fixed bug #67647 Bundled libmagic 5.17 does not detect quicktime files correctly 2015-01-22 11:48:11 +01:00
68398.zip Fixed bug #68398 msooxml matches too many archives 2014-12-06 20:51:00 +01:00
68731.gif Fixed bug #68731 finfo_buffer doesn't extract the correct mime with some gifs 2015-01-22 12:26:50 +01:00
bug57547.phpt add test for bug #57547 2016-11-24 19:25:47 +01:00
bug61173.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug61964-mb.phpt fix tests 2016-11-24 14:36:49 +01:00
bug61964.phpt fix tests 2016-11-24 14:36:49 +01:00
bug67516.gif Add test for bug #67516 2016-11-24 17:59:09 +01:00
bug67516.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug67647-mb.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug67647.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug68398.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug68731.phpt Fixed bug #68731 finfo_buffer doesn't extract the correct mime with some gifs 2015-01-22 12:26:50 +01:00
bug68735.jpg Fixed bug #68735 fileinfo out-of-bounds memory access 2015-01-04 14:20:21 +01:00
bug68735.phpt fix test outputs 2015-03-08 19:47:34 +01:00
bug68819_001.phpt Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) 2015-04-11 16:53:21 -07:00
bug68819_002.phpt Fix intermittent failure of bug_68819_002.phpt 2016-03-02 00:34:36 +01:00
bug68996.phpt fix test to not to cause false positives 2016-03-31 01:29:05 +02:00
bug69107.phpt Add test for bug #69107: finfo no longer detects PHP files 2016-08-08 18:43:33 +02:00
bug69320.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug71434.phpt Fixed bug #71434 (finfo throws notice for specific python file) 2016-01-25 11:40:08 +08:00
bug71527-mb.phpt Use bool instead of boolean while throwing a type error 2018-02-04 23:09:40 +01:00
bug71527.magic Fixed bug #71527 Buffer over-write in finfo_open with malformed magic file 2016-03-29 13:10:39 +02:00
bug71527.phpt Use bool instead of boolean while throwing a type error 2018-02-04 23:09:40 +01:00
bug71527私はガラスを食べられます.magic Fixed the UTF-8 and long path support in the streams on Windows. 2016-06-20 12:45:39 +02:00
cve-2014-1943-mb.phpt fix tests 2016-11-24 14:36:49 +01:00
cve-2014-1943.phpt fix tests 2016-11-24 14:36:49 +01:00
cve-2014-1943私はガラスを食べられます.data Fixed the UTF-8 and long path support in the streams on Windows. 2016-06-20 12:45:39 +02:00
cve-2014-1943私はガラスを食べられます.magic Fixed the UTF-8 and long path support in the streams on Windows. 2016-06-20 12:45:39 +02:00
cve-2014-3538-mb.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
cve-2014-3538-nojit.phpt Fork test with pcre.jit=0 2018-11-10 20:06:47 +01:00
cve-2014-3538.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
cve-2014-3538私はガラスを食べられます.data Fixed the UTF-8 and long path support in the streams on Windows. 2016-06-20 12:45:39 +02:00
finfo_buffer_basic-mb.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_buffer_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_buffer_error.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_buffer_variation1-mb.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_buffer_variation1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_close_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_close_error.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_extension_flag.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
finfo_file_001.phpt Bug#54016 (finfo_file() Cannot determine filetype in archives) 2011-02-14 15:32:02 +00:00
finfo_file_002.phpt Fixed bug #66307 Fileinfo crashes with powerpoint files 2014-05-26 18:04:27 -07:00
finfo_file_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_file_regex.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_file_stream_001.phpt Give a reason why the test was skipped 2018-07-22 16:41:41 -03:00
finfo_open_001.phpt Fix bug #61811 three of finfo tests failed, see also #61812. 2012-04-22 19:26:54 +02:00
finfo_open_002.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
finfo_open_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_open_error.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_open_variation1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_phpinfo_basic.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
finfo_set_flags_basic-mb.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
finfo_set_flags_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
magic Rework magic data once more 2018-11-14 22:23:24 +01:00
magic私はガラスを食べられます Rework magic data once more 2018-11-14 22:23:24 +01:00
mime_content_type_001.phpt Bug#54016 (finfo_file() Cannot determine filetype in archives) 2011-02-14 15:32:02 +00:00
mime_content_type_002.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
precedural_finfo_in_method.phpt Add missing SKIPIF sections 2018-02-03 13:54:34 +01:00
skipif.inc Give a reason why the test was skipped 2018-07-22 16:41:41 -03:00