Skip to content
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

fix(fseek&ftell): fix a bug of fseek/ftell on win, which fail to work when file size > 2GB(max bound of long type) #1222

Closed

Conversation

no5-aaron-wu
Copy link

when file size > 2GB, fseek will work wrong, ftell return -1 on windows

… when file size > 2GB(max bound of long type)
@jtbandes
Copy link
Member

Thanks for the contribution! It looks like we already have a CI check that runs tests on Windows. Would you be able to add a test case to ensure this works as expected?

@no5-aaron-wu
Copy link
Author

my test env is VS2019 with msvc1929, read a mcap file > 2GB will reproduce the problem, or you can just test fseek&ftell API derictly on win, i'm sorry for my pr not pass your CI due to my lack of consideration, or it should just be a issue.

@no5-aaron-wu
Copy link
Author

in LogTimeOrder will act more bad, nothing will return by readMessages API, in FileOrder still can get data although file size get wrong -1

@defunctzombie
Copy link
Contributor

@no5-aaron-wu Are you able to update this PR to add the unit test requested? It also looks like some other aspects of the PR are failing CI. Consider merging latest main and the swift CI issue might be resolved.

@defunctzombie
Copy link
Contributor

Closing this out since we've not heard back. We are happy to re-visit if you can address the issue around unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants