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

Rows indexed by shorts, can't parse file larger than 32767 rows. #26

Open
mjfuller opened this issue Nov 14, 2016 · 3 comments
Open

Rows indexed by shorts, can't parse file larger than 32767 rows. #26

mjfuller opened this issue Nov 14, 2016 · 3 comments

Comments

@mjfuller
Copy link

Noticed that there is a segfault in xls_addCell when loading large files. Might there be an easy way to instead index rows with ints or longs? If not, maybe fail gracefully instead. Otherwise this parser is great! lmk if you cannot reproduce this behavior.

@dhoerl
Copy link
Owner

dhoerl commented Nov 14, 2016

On 11/14/16 1:51 PM, mjfuller wrote:

Noticed that there is a segfault in xls_addCell when loading large
files. Might there be an easy way to instead index rows with ints or
longs? If not, maybe fail gracefully instead. Otherwise this parser is
great! lmk if you cannot reproduce this behavior.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#26, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAxml7PJEJtfD-Fx7dXnaH2C-Herug67ks5q-K2kgaJpZM4Kxq0d.

I haven't looked at this code in years. I suggest using "Analyze" to
find incorrect index values (using short instead of unsigned short,
etc). Or add some NSLogs(). I really won't have a chance to look at it
until December. Its probably something really easy to catch if you spend
an hour.

If you do find it let me know via code snippet or pull request.

@mjfuller
Copy link
Author

mjfuller commented Nov 14, 2016

I'll take a look at it and let you know if I find any quick fixes. Thanks.

@dhoerl
Copy link
Owner

dhoerl commented Nov 14, 2016

On 11/14/16 2:10 PM, mjfuller wrote:

I'll take a look at it. Thanks.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#26 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAxmlwzmyexNUKF9fTcr3zuByFFvMGEwks5q-LIKgaJpZM4Kxq0d.

As the person who took the C based library over, I went to great lengths
to be sure indexes used unsigned shorts. But perhaps I missed something
in the Objective C wrapper, or there could be something I missed in the
library. I tested the library at one point with 60K rows and 256 columns.

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

No branches or pull requests

2 participants