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
 [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

Pull Requests

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: Thu Nov 21 10:01:29 2024 UTC