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

toolbox: validate request offset in ListFiles #946

Merged
merged 1 commit into from
Dec 11, 2017
Merged

Conversation

dougm
Copy link
Member

@dougm dougm commented Dec 4, 2017

The ListFiles handler assumed the 'offset' param was always valid.
It could be invalid if client-side logic is wrong or directory contents have shrunk in between calls.
Either way, we reply with '0' remaining files in this case as open-vm-tools does.

Fixes #934

The ListFiles handler assumed the 'offset' param was always valid.
It could be invalid if client-side logic is wrong or directory contents have shrunk in between calls.
Either way, we reply with '0' remaining files in this case as open-vm-tools does.

Fixes vmware#934
@dougm
Copy link
Member Author

dougm commented Dec 4, 2017

@gigawhitlocks can you review?

@gigawhitlocks
Copy link

Sorry that took me so long; didn't see the notification.

@dougm dougm merged commit 0eacf95 into vmware:master Dec 11, 2017
@dougm dougm deleted the issue-934 branch December 11, 2017 19:28
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.

3 participants