Skip to content

Segmentation fault in Zend/zend_vm_execute.h:30160 in JIT #16635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
YuanchengJiang opened this issue Oct 29, 2024 · 1 comment
Closed

Segmentation fault in Zend/zend_vm_execute.h:30160 in JIT #16635

YuanchengJiang opened this issue Oct 29, 2024 · 1 comment

Comments

@YuanchengJiang
Copy link

Description

The following code:

<?php
namespace Foo;
var_dump(class_exists('\foo'));
class test {
function __construct() {
}
function test() {
}
}
$x1=1;
$x2=1;
var_dump('sodium_crypto_kdf_derive_from_key');
$callret=sodium_crypto_kdf_derive_from_key($x1,$x2,$x1,$x2);
print_r($callret);
?>

Resulted in this output (JIT 1211):

Zend/zend_vm_execute.h:30160:8: runtime error: shift exponent 326 is too large for 32-bit type 'uint32_t' (aka 'unsigned int')

But I expected this output instead (non-JIT):

string(33) "sodium_crypto_kdf_derive_from_key"

Fatal error: Uncaught SodiumException: sodium_crypto_kdf_derive_from_key(): Argument #1 ($subkey_length) must be greater than or equal to SODIUM_CRYPTO_KDF_BYTES_MIN

PHP Version

nightly

Operating System

ubuntu 22.04

@nielsdos
Copy link
Member

Also a duplicate of your other report #15981
You're hitting the same issue in different ways basically.

@nielsdos nielsdos closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants