[pull] master from php:master - #1130
Merged
Merged
Conversation
Patch by Pierre Joye (pierrejoye).
Expose mpz_prevprime() to the userland, namely gmp_prevprime().
php_pgsql_add_quotes() quotes the string with E'...', but PQescapeStringConn() does not escape \ unless standard_conforming_strings is off. PQescapeStringConn() is meant to be used with '', so do that instead. Fixes GHSA-7qpv-r5mr-78m4
Prevents infinite recursion in phar_get_link_source.
* PHP-8.2: Add NEWS entries Fix GHSA-vc5h-9ppw-p5f3: phar circular symlink crash Fix SQL injection in ext-pgsql via E'...' backslash breakout libgd patch for CVE-2026-9672
* PHP-8.3: Add NEWS entries Fix GHSA-vc5h-9ppw-p5f3: phar circular symlink crash Fix SQL injection in ext-pgsql via E'...' backslash breakout libgd patch for CVE-2026-9672
When a fraction is truncated to a caller-supplied scale and then re-trimmed of
trailing zeros, str_scale was reduced but fractional_end was not, so
bc_copy_and_toggle_bcd() copied more bytes than were reserved by
bc_new_num_nonzeroed(). With small numbers allocated from the 256-byte stack
arena this is a stack-based OOB write reachable via bccomp($num1, $num2,
$scale), e.g. bccomp("1.901", "0", 2).
Keep fractional_end in sync with str_scale so the copy length matches the
reserved length.
Fixes GHSA-x692-q9x7-8c3f
* PHP-8.4: Fix out-of-bounds write in ext-bcmath bccomp() via bc_str2num() Add NEWS entries Fix GHSA-vc5h-9ppw-p5f3: phar circular symlink crash Fix SQL injection in ext-pgsql via E'...' backslash breakout libgd patch for CVE-2026-9672
* PHP-8.5: Fix out-of-bounds write in ext-bcmath bccomp() via bc_str2num() Add NEWS entries Fix GHSA-vc5h-9ppw-p5f3: phar circular symlink crash Fix SQL injection in ext-pgsql via E'...' backslash breakout libgd patch for CVE-2026-9672
Faulty merge on my part.
* PHP-8.2: PHP-8.2 is now for PHP 8.2.34-dev # Conflicts: # Zend/zend.h # configure.ac # main/php_version.h
* PHP-8.3: PHP-8.2 is now for PHP 8.2.34-dev
* PHP-8.4: PHP-8.2 is now for PHP 8.2.34-dev
* PHP-8.5: PHP-8.2 is now for PHP 8.2.34-dev
- Use const when possible - Use bool or size_t type rather than int type
Expose mpz_powm_sec() to the userland, namely gmp_powm_sec().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )