Bug #75379 [NEW]: Warning: finfo_file(): Null byte in regex in /root/php-src/bug/1.php on line 4
| From: | chipitsine at gmail dot com | Date: | Sun, 15 Oct 2017 08:09:40 +0000 |
| Subject: | Bug #75379 [NEW]: Warning: finfo_file(): Null byte in regex in /root/php-src/bug/1.php on line 4 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-211689@lists.php.net to get a copy of this message | ||
From: chipitsine at gmail dot com
Operating system: centos 7
PHP version: Irrelevant
Package: *General Issues
Bug Type: Bug
Bug description:Warning: finfo_file(): Null byte in regex in /root/php-src/bug/1.php on line 4
Description:
------------
when analyzing malware samples from VirusShare, I encountered a sample
that fails on finfo_file
it's VirusShare_01ff33de3e8bdded777bdcabe1c983c1
I do not know how to upload it here
Test script:
---------------
$finfo = finfo_open(FILEINFO_MIME);
$type = finfo_file($finfo,
__DIR__.'/VirusShare_01ff33de3e8bdded777bdcabe1c983c1');
--
Edit bug report at https://bugs.php.net/bug.php?id=75379&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75379&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75379&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75379&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75379&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75379&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75379&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75379&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75379&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75379&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75379&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75379&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75379&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75379&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75379&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75379&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75379&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75379&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75379&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75379&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75379&r=mysqlcfg