Bug #77165 [NEW]: mb_check_encoding crashes when argument given an empty array
| From: | youkidearitai at gmail dot com | Date: | Thu, 15 Nov 2018 16:02:48 +0000 |
| Subject: | Bug #77165 [NEW]: mb_check_encoding crashes when argument given an empty array | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-217978@lists.php.net to get a copy of this message | ||
From: youkidearitai at gmail dot com
Operating system: Linux
PHP version: 7.3.0RC5
Package: Reproducible crash
Bug Type: Bug
Bug description:mb_check_encoding crashes when argument given an empty array
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
--
Edit bug report at https://bugs.php.net/bug.php?id=77165&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77165&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77165&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77165&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77165&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77165&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77165&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77165&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77165&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77165&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77165&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77165&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77165&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77165&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77165&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77165&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77165&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77165&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77165&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77165&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77165&r=mysqlcfg