Bug #80363 [Fbk->NoF]: TypeError with nullable types with JIT enabled

From: Date: Sun, 06 Dec 2020 04:22:08 +0000
Subject: Bug #80363 [Fbk->NoF]: TypeError with nullable types with JIT enabled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230881@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:       php-bugs@lists.php.net
 Reported by:      security at paragonie dot com
 Summary:          TypeError with nullable types with JIT enabled
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          *General Issues
 Operating System: N/A
 PHP Version:      8.0.0RC4
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2020-11-24 11:50:44] nikic@php.net

If someone can reproduce this with RC5 or the GA release, please tell me.

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


Thread (4 messages)

« previous php.bugs (#230881) next »