Skip to content

Fix GH-10521: ftp_get/ftp_nb_get resumepos offset is maximum 10GB - #10525

Closed
ndossche wants to merge 1 commit into
php:PHP-8.1from
ndossche:fix-10521
Closed

ndossche wants to merge 1 commit into
php:PHP-8.1from
ndossche:fix-10521

Conversation

@ndossche

@ndossche ndossche commented Feb 6, 2023 •

Copy link
Copy Markdown
Member

Fixes GH-10521

The char arrays were too small for a long on 64-bit systems, which resulted in cutting off the string at the end with a NUL byte. Use a size of MAX_LENGTH_OF_LONG to fix this issue instead of a fixed size of 11 chars.

@mvorisek

mvorisek commented Feb 7, 2023

Copy link
Copy Markdown
Contributor

test is not passing on MacOS

The char arrays were too small for a long on 64-bit systems, which
resulted in cutting off the string at the end with a NUL byte. Use a
size of MAX_LENGTH_OF_LONG to fix this issue instead of a fixed size
of 11 chars.
@ndossche

ndossche commented Feb 7, 2023

Copy link
Copy Markdown
Member Author

test is not passing on MacOS

Thanks for letting me know, should be fixed now.

@devnexen devnexen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but still waiting @cmb69 for this one :)

@ndossche

Copy link
Copy Markdown
Member Author

Christoph seems quite busy lately, shall we ask someone else for review too or is one reviewer good enough? :)

@ndossche
ndossche requested a review from iluuu1994 March 20, 2023 22:12
@iluuu1994

Copy link
Copy Markdown
Member

Thanks 🙂

@ndossche ndossche self-assigned this Mar 20, 2023
@ndossche ndossche closed this in 3014182 Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants