Bug #79441 [NEW]: Segfault in mb_chr() if internal encoding is unsupported

From: Date: Tue, 31 Mar 2020 23:48:16 +0000
Subject: Bug #79441 [NEW]: Segfault in mb_chr() if internal encoding is unsupported
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226380@lists.php.net to get a copy of this message
From:             girgias
Operating system: 
PHP version:      7.3.16
Package:          mbstring related
Bug Type:         Bug
Bug description:Segfault in mb_chr() if internal encoding is unsupported

Description:
------------
Test script: https://3v4l.org/faneO

This displays (null) instead of the offending encoding in PHP 7.3, and
segfaults on PHP 7.4.

Already fixed in master with
https://github.com/php/php-src/commit/229dff9f08741c34267ba24668da97d8945f8626


-- 
Edit bug report at https://bugs.php.net/bug.php?id=79441&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79441&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79441&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79441&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79441&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79441&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79441&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79441&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79441&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79441&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79441&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79441&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79441&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79441&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79441&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79441&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79441&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79441&r=mysqlcfg


Thread (2 messages)

« previous php.bugs (#226380) next »