Skip to content

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

New issue

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

Closed
wants to merge 1 commit into from

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Feb 6, 2023

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
Copy link
Contributor

mvorisek commented Feb 7, 2023

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.
@nielsdos
Copy link
Member Author

nielsdos commented Feb 7, 2023

test is not passing on MacOS

Thanks for letting me know, should be fixed now.

Copy link
Member

@devnexen devnexen left a comment

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

@nielsdos
Copy link
Member Author

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

@nielsdos nielsdos requested a review from iluuu1994 March 20, 2023 22:12
@iluuu1994
Copy link
Member

Thanks 🙂

@nielsdos nielsdos self-assigned this Mar 20, 2023
@nielsdos nielsdos 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