Skip to content

[pull] master from php:master#1014

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

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

Conversation

@pull

@pull pull Bot commented Jun 19, 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 : )

petk and others added 5 commits June 18, 2026 23:05
In Autotools these aren't installed and neither are there any public
headers.
In ASCII mode ftp_get() peeks at the byte after each '\r' to fold CRLF
into LF. When that '\r' is the last byte of a full FTP_BUFSIZE read, the
lookahead reads one byte past the buffer; a server placing '\r' at
offset 4095 of a 4096-byte read hits it (ASAN: heap-buffer-overflow
read of size 1). Bound the lookahead to the received data, as
ftp_readline() does. ftp_nb_continue_read() carries the trailing '\r'
across reads and isn't affected.

Closes GH-22328
* PHP-8.4:
  ext/ftp: fix out-of-bounds read in ftp_get() ASCII CRLF translation
* PHP-8.5:
  ext/ftp: fix out-of-bounds read in ftp_get() ASCII CRLF translation
@pull pull Bot locked and limited conversation to collaborators Jun 19, 2026
@pull pull Bot added the ⤵️ pull label Jun 19, 2026
@pull pull Bot merged commit e71b4e5 into turkdevops:master Jun 19, 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