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

Support xlsx sheet sizes beyond u32::MAX #190

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

robyoung
Copy link
Contributor

@robyoung robyoung commented Oct 6, 2020

Resolves #174

This PR includes the failing file from #174. It appears the issue was
that the sheet was the max size but filled with empty cells. However,
the length checking code only supported lengths up to u32::MAX.

This change means that xlsx files with more than the maximum number of
rows or columns allowed by the xlsx standard. I feel like this should
not cause a hard fail as other tools that produce xlsx files do not
always respect these limits. To give the user some kind of indication of
the issue I have added a couple of warning log messages.

Resolves tafia#174

This PR includes the failing file from tafia#174. It appears the issue was
that the sheet was the max size but filled with empty cells. However,
the length checking code only supported lengths up to u32::MAX.

This change means that xlsx files with more than the maximum number of
rows or columns allowed by the xlsx standard. I feel like this should
not cause a hard fail as other tools that produce xlsx files do not
always respect these limits. To give the user some kind of indication of
the issue I have added a couple of warning log messages.
@tafia tafia merged commit 2391d0c into tafia:master Oct 8, 2020
@tafia
Copy link
Owner

tafia commented Oct 8, 2020

This is great, thanks!!

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.

Overflow when opening an xls file
2 participants