Skip to content

Conversation

zeehio
Copy link
Contributor

@zeehio zeehio commented Nov 2, 2022

When zip_open_utf8() fails, NULL is returned.

That NULL is passed down and eventually ends up in ftello64(NULL) causing a NULL pointer dereference, aborting R.

With this check, we show an error instead

When zip_open_utf8() fails, NULL is returned.

That NULL is passed down and eventually ends up in `ftello64(NULL)` causing a NULL pointer dereference, aborting R.
@gaborcsardi gaborcsardi merged commit 55c29fa into r-lib:main Nov 2, 2022
@gaborcsardi
Copy link
Member

Great, thank you very much!

zeehio added a commit to sipss/AlpsNMR that referenced this pull request Nov 2, 2022
After fixing

- r-lib/zip#91
- r-lib/zip#92

The zip package works reliably for me again
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.

2 participants