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

Handling outOfBounds exception in QueueFile readElement #152

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

ananyachandra14
Copy link
Collaborator

Issue Reference

Corrupt files in Android 9+ cause a crash in Tape library's QueueFile. This is explained well in segmentio's analytics-android's issues here, and subsequently handled in this PR.

Adding the same change here. To summarise, this should help with handling invalid firstOffset and lastOffset values in the header.

Any fix for this directly in the Tape library could't be found. There's a commit here, which changes the invalid header condition but it seems to be part of a larger change.

@ananyachandra14 ananyachandra14 changed the title Handling corrupt file exception in QueueFile readElement Handling outOfBounds exception in QueueFile readElement Jul 19, 2021
@arunreddy10 arunreddy10 merged commit 8cb94f9 into develop Jul 20, 2021
@ananyachandra14 ananyachandra14 deleted the outOfBoundsFix branch July 20, 2021 06:29
@ananyachandra14 ananyachandra14 mentioned this pull request Jul 20, 2021
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.

4 participants