Bug #80363 [Opn->Fbk]: TypeError with nullable types with JIT enabled
| From: | nikic@php.net | Date: | Tue, 24 Nov 2020 11:50:44 +0000 |
| Subject: | Bug #80363 [Opn->Fbk]: TypeError with nullable types with JIT enabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-230571@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80363&edit=1
ID: 80363
Updated by: nikic@php.net
Reported by: security at paragonie dot com
Summary: TypeError with nullable types with JIT enabled
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: N/A
PHP Version: 8.0.0RC4
Block user comment: N
Private report: N
New Comment:
If someone can reproduce this with RC5 or the GA release, please tell me.
Previous Comments:
------------------------------------------------------------------------
[2020-11-17 09:41:16] nikic@php.net
I can't reproduce this when running the constant_time_encoding tests (with JIT) at least. From
the issue, it's not really clear how this is supposed to be reproduced.
------------------------------------------------------------------------
[2020-11-13 17:12:27] security at paragonie dot com
Description:
------------
https://github.com/paragonie/constant_time_encoding/issues/26
This was reported in PHP-8.0-RC3 and there is nothing in the NEWS file to indicate it's fixed
in RC4.
https://github.com/php/php-src/blob/f5be0e5110ff816d2ce168c154cb3575d08e3cad/NEWS
Test script:
---------------
See Github issue.
Expected result:
----------------
No TypeError
Actual result:
--------------
TypeError: mb_substr(): Argument #3 ($length) must be of type ?int, null given
#34 /vendor/paragonie/constant_time_encoding/src/Binary.php(76): mb_substr
#33 /vendor/paragonie/constant_time_encoding/src/Binary.php(76):
ParagonIE\ConstantTime\Binary::safeSubstr
#32 /vendor/paragonie/hidden-string/src/HiddenString.php(173):
ParagonIE\HiddenString\HiddenString::safeStrcpy
#31 /vendor/paragonie/hidden-string/src/HiddenString.php(56):
ParagonIE\HiddenString\HiddenString::__construct
#30 /vendor/paragonie/halite/src/Symmetric/Crypto.php(208):
ParagonIE\Halite\Symmetric\Crypto::decryptWithAd
#29 /vendor/paragonie/halite/src/Symmetric/Crypto.php(105):
ParagonIE\Halite\Symmetric\Crypto::decrypt
#28 /vendor/philetaylor/doctrine-encrypt/Encryptors/HaliteEncryptor.php(82):
Philetaylor\DoctrineEncryptBundle\Encryptors\HaliteEncryptor::decrypt
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80363&edit=1