Skip to content

Fix FileInputStream::Skip handling of EOF. - #28995

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_952132801
Draft

Fix FileInputStream::Skip handling of EOF.#28995
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_952132801

Conversation

@copybara-service

Copy link
Copy Markdown

Fix FileInputStream::Skip handling of EOF.

POSIX lseek on regular files allows seeking past EOF and returns the new offset rather than -1. This causes FileInputStream::Skip to return true instead of false when seeking past EOF.

POSIX lseek on regular files allows seeking past EOF and returns the new offset rather than -1. This causes FileInputStream::Skip to return true instead of false when seeking past EOF.

PiperOrigin-RevId: 952132801
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant