Skip to content

[pull] master from php:master#1110

Merged
pull[bot] merged 5 commits into
turkdevops:masterfrom
php:master
Jul 21, 2026
Merged

[pull] master from php:master#1110
pull[bot] merged 5 commits into
turkdevops:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Jul 21, 2026

Copy link
Copy Markdown

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 : )

khaledalam and others added 5 commits July 20, 2026 23:32
Fixes GH-20974

Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
php_filter_encode_url() initialized its 256-byte "must encode" table with
memset(tmp, 1, sizeof(tmp) - 1), leaving tmp[255] uninitialized. Whether
0xFF got percent-encoded then depended on stack garbage; valgrind reports
the read as a conditional jump on an uninitialised value. Initialize the
whole table.

Closes GH-22762
* PHP-8.4:
  ext/filter: encode 0xFF in FILTER_SANITIZE_ENCODED
* PHP-8.5:
  ext/filter: encode 0xFF in FILTER_SANITIZE_ENCODED
Commit 3dcdb98 routed the user_agent option through a truncate-and-warn
check, but the Content-Type context option, the soapaction and the cookie
names and values reach the same request buffer unchecked, so a CR/LF in any
of them still injects arbitrary request headers.

Emit all of them through that same check. The helper now takes an explicit
length so the char* soapaction can share it.

Close GH-22781
@pull pull Bot locked and limited conversation to collaborators Jul 21, 2026
@pull pull Bot added the ⤵️ pull label Jul 21, 2026
@pull
pull Bot merged commit f6fe838 into turkdevops:master Jul 21, 2026
1 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants