Download src/php/php-src/ext/fileinfo/tests/bug79283.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug79283.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/fileinfo/tests/bug79283.phpt
-
curl -L -o bug79283.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug79283.phpt
396 Bytes
| --TEST-- | |
| Bug #79283 (Segfault in libmagic patch contains a buffer overflow) | |
| --EXTENSIONS-- | |
| fileinfo | |
| --FILE-- | |
| $magic_file = __DIR__ . '/bug79283.db'; | |
| file_put_contents($magic_file, " | |
| 0 regex \\0\\0\\0\\0 Test | |
| "); | |
| $finfo = new finfo(FILEINFO_NONE, $magic_file); | |
| var_dump($finfo->buffer("buffer\n")); | |
| --CLEAN-- | |
| unlink(__DIR__ . '/bug79283.db'); | |
| --EXPECT-- | |
| string(10) "ASCII text" | |