We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code:
<?php $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; $phar = new Phar($fname); $fusion = $phar; $fusion->extractTo(__DIR__ . "/bug81490", "");
Resulted in this output:
/home/phpfuzz/WorkSpace/flowfusion/php-src/ext/phar/phar_object.c:4330:20: runtime error: addition of unsigned offset to 0x603000001438 overflowed to 0x603000001437 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/phpfuzz/WorkSpace/flowfusion/php-src/ext/phar/phar_object.c:4330:20
nightly
No response
The text was updated successfully, but these errors were encountered:
Fix phpGH-17518: offset overflow phar extractTo()
173471f
`search` can be the empty string, so we need to check the length before checking the last char.
eab209d
Merge branch 'PHP-8.3' into PHP-8.4
7cc8719
* PHP-8.3: Fix GH-17518: offset overflow phar extractTo()
Merge branch 'PHP-8.4'
b8ee4c2
* PHP-8.4: Fix GH-17518: offset overflow phar extractTo()
nielsdos
Successfully merging a pull request may close this issue.
Description
The following code:
Resulted in this output:
PHP Version
nightly
Operating System
No response
The text was updated successfully, but these errors were encountered: