Bug #75379 [Com]: Warning: finfo_file(): Null byte in regex in /root/php-src/bug/1.php on line 4

From: Date: Thu, 02 Apr 2020 21:03:39 +0000
Subject: Bug #75379 [Com]: Warning: finfo_file(): Null byte in regex in /root/php-src/bug/1.php on line 4
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226417@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75379&edit=1

 ID:                 75379
 Comment by:         max at ytmnd dot com
 Reported by:        chipitsine at gmail dot com
 Summary:            Warning: finfo_file(): Null byte in regex in
                     /root/php-src/bug/1.php on line 4
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   centos 7
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

I'm seeing "finfo::file(): Null byte in regex" multiple times daily with a variety of
files being uploaded by users. Would love if anyone has a solution to this.


Previous Comments:
------------------------------------------------------------------------
[2019-11-14 18:00:30] bugzilla at shnoulle dot net

Can reproduce with a simple file (Tab separated value) file
With fedora/Linux PHP Version 7.3.11

File was in https://bugs.limesurvey.org/view.php?id=15565

vvexport_151625-1.csv

------------------------------------------------------------------------
[2017-10-15 09:22:33] chipitsine at gmail dot com

I reproduced in master from https://github.com/php/php-src
it is 7.2-git-master, but I couldn't figure out how to choose that version in dropdown box

https://yadi.sk/d/F-bwoBFL3Nm6hS - password
'infected' (be careful, it's a malware sample for android)

------------------------------------------------------------------------
[2017-10-15 08:51:38] spam2 at rhsoft dot net

how do you come to the crazy conclusion PHP version is irrelevant, you can't upload it here but
you need to find a way upload it *somewhere* and place a link here - without reproducer and exact
version no way to fix

if you are using the php shipped with RHEL you are completely wrong here because that's a no
longer upstream maintained 5.4 and hence the redhat bugzilla.redhat.com is your friend

------------------------------------------------------------------------
[2017-10-15 08:13:12] chipitsine at gmail dot com

full error message:

Warning: finfo_file(): Null byte in regex in /root/php-src/bug/1.php on line 4

Warning: finfo_file(): Failed identify data 0:(null) in /root/php-src/bug/1.php on line 4

------------------------------------------------------------------------
[2017-10-15 08:11:36] chipitsine at gmail dot com

if someone wishes to get VirusShare_01ff33de3e8bdded777bdcabe1c983c1, please contact me, I'll
provide

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=75379


--
Edit this bug report at https://bugs.php.net/bug.php?id=75379&edit=1


Thread (7 messages)

« previous php.bugs (#226417) next »