php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77165 mb_check_encoding crashes when argument given an empty array
Submitted: 2018-11-15 16:02 UTC Modified: 2018-11-15 16:09 UTC
From: youkidearitai at gmail dot com Assigned: nikic (profile)
Status: Closed Package: Reproducible crash
PHP Version: 7.3.0RC5 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: youkidearitai at gmail dot com
New email:
PHP Version: OS:

 

 [2018-11-15 16:02 UTC] youkidearitai at gmail dot com
Description:
------------
mb_check_encoding is crashing when first argument given an empty array.
It is also "Process exited with code 139" on https://3v4l.org/Yd42T

Test script:
---------------
var_dump(mb_check_encoding(array()));

Expected result:
----------------
bool(true)

Actual result:
--------------
Segmentation fault

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-15 16:09 UTC] nikic@php.net
-Assigned To: +Assigned To: nikic
 [2018-11-15 16:17 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=dee5a450d9b7f7b03f012dd1912cc0a3dcb0482c
Log: Fixed bug #77165
 [2018-11-15 16:17 UTC] nikic@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 07:01:29 2024 UTC